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

[Question]: How do I implement a Java servlet-like forward with the URL address unchanged? #724

Open
springrain opened this issue Apr 14, 2023 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@springrain
Copy link
Contributor

Describe the Question

How do I implement a Java servlet-like forward with the URL address unchanged?

Reproducible Code

c.Redirect(consts.StatusFound, []byte("/test"))

Expected behavior

Redirect jump, URL address remains unchanged
Although redirected now, the browser URL has also changed

Hertz version:

0.6.2

Environment:

The output of go env.

Additional context

Add any other context about the question here.

@li-jin-gou
Copy link
Member

same to #469

@li-jin-gou li-jin-gou added the question Further information is requested label Apr 14, 2023
@li-jin-gou
Copy link
Member

Hello @springrain If you are using it in production environment, could you pls register #73? If so, we can raise the priority a little.

@li-jin-gou li-jin-gou self-assigned this Apr 15, 2023
@li-jin-gou
Copy link
Member

Hi @springrain I will be re-developing handleContext in the near future, does it meet your needs?

@springrain
Copy link
Contributor Author

Thank you very much, I need this feature, but there is no rush

@li-jin-gou
Copy link
Member

Thank you very much, I need this feature, but there is no rush

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants