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

[BUG] to query param doesn't redirect after login #6582

Open
alicanerdurmaz opened this issue Dec 16, 2024 · 1 comment · Fixed by #6583
Open

[BUG] to query param doesn't redirect after login #6582

alicanerdurmaz opened this issue Dec 16, 2024 · 1 comment · Fixed by #6583
Assignees
Labels
bug Something isn't working

Comments

@alicanerdurmaz
Copy link
Member

Describe the bug

After logout, Refine automatically appends to query param to URL but it doesn't redirect to URL after login.

Steps To Reproduce

  1. Create a project with npm create refine-app@latest -- --example auth-antd
  2. run the project with npm run dev
  3. go to http://localhost:3000/login?to=/any-path
  4. login
  5. check the URL, it should be http://localhost:3000/any-path but it's http://localhost:3000/blog-posts

Expected behavior

After login, it should redirect to http://localhost:3000/any-path

Packages

System:

  • OS: macOS 14.5
  • CPU: (10) arm64 Apple M2 Pro

Binaries:

  • Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
  • Yarn: 1.22.17 - /opt/homebrew/bin/yarn
  • npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm

Browsers:

  • Chrome: 131.0.6778.140
  • Safari: 17.5

Refine Packages:

  • @refinedev/antd: 5.45.1
  • @refinedev/cli: 2.16.42
  • @refinedev/core: 4.57.1
  • @refinedev/react-router: 1.0.1
  • @refinedev/simple-rest: 5.0.10

Additional Context

No response

@raja8287
Copy link

raja8287 commented Jan 2, 2025

Hey!
I want to contribute to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants