in function require_login - fix for double root url after login

When accessing a page like yoursite/candycane/issues/13 and it required a login, you get redirected to the wrong url yoursite/candycane/candycane/issues/13 after login. This should fix the problem.