shortening url to redirect on logout