bugfix for redirects (needed for wiki popups)