Bug in non-trailing slash rewrite

You can check the discussion under Redirects with :splat broken - #6 by jasiqli

I went with the hack by @rkaravia for now but a) it is super ugly and confusing for new/other maintainers and b) it reduces the number of actually useful function calls that we can do.