Fix subdirectory links in pages servlet (issue-411)