when redirecting to an uri, don't use a trailing slash in order for the redirect to be correct, fixes #1411

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>