Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] - Add RedirectToRoute and RedirectBack #1750

Merged
merged 30 commits into from
Feb 9, 2022
Merged

[FEATURE REQUEST] - Add RedirectToRoute and RedirectBack #1750

merged 30 commits into from
Feb 9, 2022

Conversation

sujit-baniya
Copy link
Contributor

This PR creates two functions RedirectToRoute and RedirectBack.

RedirectToRoute - will redirect to location (along with parameters) based on route name
RedirectBack - will redirect back to the referer URL or the fallback defined

@ReneWerner87
Copy link
Member

ReneWerner87 commented Feb 4, 2022

  • Don't forget the documentation repository

@sujit-baniya
Copy link
Contributor Author

@ReneWerner87 created PR for doc as well: gofiber/docs#238

@ReneWerner87
Copy link
Member

Will do the deep check tomorrow.

ctx.go Outdated Show resolved Hide resolved
ctx_test.go Show resolved Hide resolved
ctx_test.go Show resolved Hide resolved
ctx.go Outdated Show resolved Hide resolved
@sujit-baniya
Copy link
Contributor Author

@ReneWerner87 All suggestions are implemented

@ReneWerner87
Copy link
Member

please fix the golint comments

utils/convert.go Outdated Show resolved Hide resolved
utils/convert.go Outdated Show resolved Hide resolved
ctx.go Outdated Show resolved Hide resolved
@ReneWerner87 ReneWerner87 merged commit 505e4d7 into gofiber:master Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants