a number of fixes related to relative paths, slugifying

adds a number of tests to ensure that relative paths work with pagination and more complex scenarios.