fix bug: now remove unnecessary slashes before redirecting user