You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/context
mrsdizzie 2842f6cf42
Include query in sign in redirect (#11579)
* Include query in sign in redirect

Include query string in ctx.Data["SignInLink"] so people are redirected to the right page after singing in. Fixes case of:

Visit:

 https://try.gitea.io/mrsdizzie/testcase/issues?q=&type=all&sort=&state=open&labels=7071&milestone=0&assignee=0

Sign in, then redirected to:

 https://try.gitea.io/mrsdizzie/testcase/issues

Create a new "SignInLink" instead of updating the existing "Link" because too many places in the code assume "Link" won't have a query

* Apply suggestions from code review

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
..
api.go [API] on 500 error only show message if gitea in dev mode (#11641) 4 years ago
api_org.go Golint fixed for modules/context 8 years ago
api_test.go fix API link header (#7298) 5 years ago
auth.go When must change password only show Signout (#11600) 4 years ago
context.go Include query in sign in redirect (#11579) 4 years ago
org.go API add/generalize pagination (#9452) 5 years ago
pagination.go Use gitea forked macaron (#7933) 5 years ago
panic.go Use gitea forked macaron (#7933) 5 years ago
permission.go Use Req.URL.RequestURI() to cope with FCGI urls (#9473) 5 years ago
repo.go Allow unauthenticated users to compare (#11240) 4 years ago