Fix bug in url building when handling 404s
Fix bug in url building when handling 404s

Refs #354

lukasjuhrich/sipa,agdsn/sipa,agdsn/sipa,MarauderXtreme/sipa,MarauderXtreme/sipa,lukasjuhrich/sipa,lukasjuhrich/sipa,agdsn/sipa,MarauderXtreme/sipa,agdsn/sipa,lukasjuhrich/sipa