Allow path to be passed to page_classes

This allows tagging navigation links etc. in other pages with page classes
Merge pull request #1120 from TMaYaD/master

Allow path to be passed to page_classes