fix trailing questionmark in redirect url if no parameters are given