Fixing pages by paths uris

Changes to be compatible with andy's UI changes