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

Clerk doesn't follow redirect_url search parameter when refreshing page #2440

Open
4 tasks done
IGassmann opened this issue Dec 22, 2023 · 1 comment
Open
4 tasks done

Comments

@IGassmann
Copy link
Contributor

IGassmann commented Dec 22, 2023

Preliminary Checks

Reproduction / Replay Link

https://github.com/IGassmann/clerk-redirect-url-reproduction

Publishable key

pk_test_c2V0dGxlZC1oYXdrLTUzLmNsZXJrLmFjY291bnRzLmRldiQ

Description

Steps to reproduce:

  1. Open http://localhost:3000/sign-in and sign in
  2. Open a second tab and go to http://localhost:3000/dashboard/target
  3. Sign out on the first tab (you will get redirected to http://localhost:3000/sign-in)
  4. Switch to the second tab (you will get auto-redirected to http://localhost:3000/sign-in?redirect_url=http%3A%2F%2Flocalhost%3A3000%2Fdashboard%2Ftarget)
  5. Sign in on the first tab
  6. Refresh the second tab (you will get redirected to http://localhost:3000/)

Expected behavior:

The user should have been redirected to http://localhost:3000/dashboard/target on step 6.

Actual behavior:

The user was redirected to http://localhost:3000/ on step 6.

Environment

System:
    OS: macOS 14.1.2
    CPU: (12) arm64 Apple M2 Pro
    Memory: 1.44 GB / 32.00 GB
    Shell: 3.6.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 18.18.0 - ~/Library/Caches/fnm_multishells/39738_1703237691322/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.8.1 - ~/Library/Caches/fnm_multishells/39738_1703237691322/bin/npm
    pnpm: 8.6.2 - ~/Library/Caches/fnm_multishells/39738_1703237691322/bin/pnpm
  Browsers:
    Chrome: 120.0.6099.129
    Safari: 17.1.2
  npmPackages:
    @clerk/nextjs: ^4.21.8 => 4.21.8
    @types/node: 20.1.4 => 20.1.4
    @types/react: 18.2.6 => 18.2.6
    @types/react-dom: 18.2.4 => 18.2.4
    autoprefixer: 10.4.14 => 10.4.14
    classnames: ^2.3.2 => 2.3.2
    next: 13.4.2 => 13.4.2
    postcss: 8.4.23 => 8.4.23
    react: 18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    tailwindcss: 3.3.2 => 3.3.2
    typescript: 5.0.4 => 5.0.4
@IGassmann IGassmann added the needs-triage A ticket that needs to be triaged by a team member label Dec 22, 2023
@jescalan jescalan added the prioritized This issue has been triaged and the team is working on it label Jan 8, 2024 — with Linear
@jescalan jescalan removed the needs-triage A ticket that needs to be triaged by a team member label Jan 8, 2024
@HusainBhattiwala
Copy link

I can give it a try

@jescalan jescalan added confirmed and removed prioritized This issue has been triaged and the team is working on it labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants