Fix redirection of subpages.