Currently the dir method for a page will always return nil because it expects the path to be in the url. However, the path is not included in the url except the version we pass to the view layer.
This change inserts the path into the object's url so that the dir method can function as expected.
Put the path into the url so the dir method will return the expected …
Damn... I just redid this fix.
I decided to use your fix which was a bit cleaner but added some tests.
Perhaps you should close this pull request to avoid confusion?
Okay. Good luck getting it accepted. I'd like to see this one fixed.
Closing since #536 duplicates this request, but adds tests.
@MrWerewolf certainly took some time but I managed to get it merged! ;)