route by pageId rather than by path