This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
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>
2020-06-03 23:41:02 -04:00
..
api.go [API] on 500 error only show message if gitea in dev mode (#11641) 2020-06-03 14:17:54 -04:00
api_org.go
api_test.go
auth.go When must change password only show Signout (#11600) 2020-05-26 23:39:39 +01:00
context.go Include query in sign in redirect (#11579) 2020-06-03 23:41:02 -04:00
org.go
pagination.go
panic.go
permission.go
repo.go Allow unauthenticated users to compare (#11240) 2020-05-04 19:44:30 -03:00