Fix suburl undefined

This is my gogs  server address `127.0.0.1:3333/`.
 It will redirect to `http://127.0.0.1:3333/undefined/user/sign_up` when clicking `sign-up` or `sign-in`.