René's URL Explorer Experiment


Title: redirect_url is appended after signing out · Issue #5590 · clerk/javascript · GitHub

Open Graph Title: redirect_url is appended after signing out · Issue #5590 · clerk/javascript

X Title: redirect_url is appended after signing out · Issue #5590 · clerk/javascript

Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk support via email or Discord (if you hav...

Open Graph Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...

X Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...

Opengraph URL: https://github.com/clerk/javascript/issues/5590

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"redirect_url is appended after signing out","articleBody":"### Preliminary Checks\n\n- [x] I have reviewed the documentation: https://clerk.com/docs\n\n- [x] I have searched for existing issues: https://github.com/clerk/javascript/issues\n\n- [x] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)\n\n- [x] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.\n\n\n### Reproduction\n\nhttps://github.com/clerk/clerk-react-quickstart\n\n### Publishable key\n\npk_test_cHJvdmVuLWdsaWRlci04Mi5jbGVyay5hY2NvdW50cy5kZXYk\n\n### Description\n\n\u003c!-- Be as precise as you can. Feel free to share screenshots, videos, or data from the devtools of your browser -->\n\n**Steps to reproduce:**\n\nUsing `@clerk/react` version `^5.26.2` on a SPA React app with React Router 6.26.0\n\n1. While signed-in, navigate to any page inside the app (i.e. `/the/url/before/signing/out`)\n2. Hard refresh\n3. Sign out (tried with `signOut()`, `signOut({ redirectUrl: '' })`, `signOut({ redirectUrl: '/sign-in' })` and `signOut({ redirectUrl: '/' })`\n4. You land on the sign-in page but have query param `redirect_url=/the/url/before/signing/out` (as well as `sign_in_fallback_redirect_url`, `sign_up_force_redirect_url`, etc.)\n\nWeird thing is that this does not happen if I do not refresh.\n\n**Expected behavior:**\n\nRedirect to sign in page without any query params.\n\nWhen signing in I do not expect to land on the page I was when I signed-out. Another user might sign in and land on a page which might give them an error/404/forbidden.\n\nOn the other hand I understand that [as per documentation](https://clerk.com/docs/guides/custom-redirects) and would expect if I visit /users/123/details while signed out, to get the redirect url and be redirected to that after signing in.\n\n**Actual behavior:**\n\nRedirected to sign-in with query params set (esp. redirect_url=/the/url/before/signing/out)\n\n\nThis is also reproducible with https://github.com/clerk/clerk-react-quickstart\n\n\n### Environment\n\n```Shell\nSystem:\n    OS: macOS 15.4\n    CPU: (12) arm64 Apple M2 Max\n    Memory: 85.14 MB / 32.00 GB\n    Shell: 5.9 - /bin/zsh\n  Binaries:\n    Node: 20.18.1 - ~/.local/state/fnm_multishells/12907_1744287998041/bin/node\n    npm: 11.1.0 - ~/.local/state/fnm_multishells/12907_1744287998041/bin/npm\n    pnpm: 10.6.5 - ~/Library/pnpm/pnpm\n    Watchman: 2025.03.10.00 - /opt/homebrew/bin/watchman\n  Browsers:\n    Chrome: 135.0.7049.84\n    Safari: 18.4\n  npmPackages:\n    @0no-co/graphqlsp: ^1.12.6 => 1.12.16\n    @apollo/client: ^3.11.2 => 3.11.8\n    @apollo/sandbox: ^2.6.0 => 2.7.0\n    @clerk/clerk-react: ^5.26.2 => 5.26.2\n    @clerk/themes: ^2.1.15 => 2.1.39\n    @daily-co/daily-js: ^0.72.1 => 0.72.1\n    @daily-co/daily-react: ^0.21.2 => 0.21.2\n    @datadog/browser-logs: ^5.23.3 => 5.29.0\n    @dnd-kit/core: ^6.1.0 => 6.1.0\n    @dnd-kit/modifiers: ^7.0.0 => 7.0.0\n    @dnd-kit/sortable: ^8.0.0 => 8.0.0\n    @dnd-kit/utilities: ^3.2.2 => 3.2.2\n    @fortawesome/fontawesome-svg-core: ^6.6.0 => 6.6.0\n    @fortawesome/free-brands-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/free-regular-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/free-solid-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/pro-duotone-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/pro-light-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/pro-regular-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/pro-solid-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/pro-thin-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/react-fontawesome: ^0.2.2 => 0.2.2\n    @fortawesome/sharp-light-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/sharp-regular-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/sharp-solid-svg-icons: ^6.6.0 => 6.6.0\n    @fortawesome/sharp-thin-svg-icons: ^6.6.0 => 6.6.0\n    @gql.tada/cli-utils: ^1.6.3 => 1.6.3\n    @hookform/resolvers: ^3.9.0 => 3.9.0\n    @ianvs/prettier-plugin-sort-imports: ^4.3.1 => 4.3.1\n    @tailwindcss/container-queries: ^0.1.1 => 0.1.1\n    @tanstack/react-table: ^8.19.3 => 8.20.5\n    @testing-library/jest-dom: ^6.6.3 => 6.6.3\n    @testing-library/react: ^16.2.0 => 16.2.0\n    @testing-library/user-event: ^14.6.1 => 14.6.1\n    @total-typescript/ts-reset: ^0.5.1 => 0.5.1\n    @types/luxon: ^3.4.2 => 3.4.2\n    @types/node: ^20.17.0 => 20.17.0\n    @types/react: ^18.3.3 => 18.3.12\n    @types/react-copy-to-clipboard: ^5.0.7 => 5.0.7\n    @types/react-dom: ^18.3.0 => 18.3.1\n    @types/react-syntax-highlighter: ^15.5.13 => 15.5.13\n    @types/validator: ^13.12.2 => 13.12.2\n    @typescript-eslint/eslint-plugin: ^8.21.0 => 8.21.0\n    @typescript-eslint/parser: ^8.21.0 => 8.21.0\n    @vitejs/plugin-legacy: ^5.4.3 => 5.4.3\n    @vitejs/plugin-react-swc: ^3.7.0 => 3.7.1\n    @wiserwork/tailwind-config: workspace:* => 0.0.0\n    @wiserwork/ui: workspace:* => 0.0.1\n    autoprefixer: ^10.4.19 => 10.4.20\n    axios: ^1.7.4 => 1.7.7\n    class-variance-authority: ^0.7.0 => 0.7.0\n    clsx: ^2.1.1 => 2.1.1\n    cmdk: ^1.0.0 => 1.0.0\n    crisp-sdk-web: ^1.0.25 => 1.0.25\n    date-fns: ^3.6.0 => 3.6.0\n    dedent: ^1.5.3 => 1.5.3\n    dotenv: ^16.4.5 => 16.4.5\n    eslint: ^8.57.0 => 8.57.1\n    framer-motion: ^11.3.21 => 11.11.9\n    gql.tada: ^1.8.5 => 1.8.10\n    graphql: ^16.9.0 => 16.9.0\n    graphql-ws: ^5.16.0 => 5.16.0\n    jotai: ^2.10.0 => 2.10.1\n    jsdom: ^26.0.0 => 26.0.0\n    localforage: ^1.10.0 => 1.10.0\n    lucide-react: ^0.428.0 => 0.428.0\n    luxon: ^3.5.0 => 3.5.0\n    match-sorter: ^6.3.4 => 6.4.0\n    next-themes: ^0.3.0 => 0.3.0\n    postcss: ^8.4.40 => 8.4.47\n    posthog-js: ^1.219.1 => 1.219.1\n    prettier: ^3.3.3 => 3.3.3\n    prettier-plugin-tailwindcss: ^0.6.8 => 0.6.8\n    react: ^18.2.0 => 18.3.1\n    react-cookie-consent: ^9.0.0 => 9.0.0\n    react-copy-to-clipboard: ^5.1.0 => 5.1.0\n    react-day-picker: ^8.10.1 => 8.10.1\n    react-dom: ^18.2.0 => 18.3.1\n    react-helmet-async: ^2.0.5 => 2.0.5\n    react-hook-form: ^7.52.1 => 7.53.1\n    react-markdown: ^9.0.1 => 9.0.1\n    react-resizable-panels: ^2.0.22 => 2.1.5\n    react-router-dom: ^6.26.0 => 6.27.0\n    react-spinners: ^0.14.1 => 0.14.1\n    react-textarea-autosize: ^8.5.3 => 8.5.4\n    react-timezone-select: ^3.2.8 => 3.2.8\n    recoil: ^0.7.7 => 0.7.7\n    remark-gfm: ^4.0.0 => 4.0.0\n    remark-math: ^6.0.0 => 6.0.0\n    remark-supersub: ^1.0.0 => 1.0.0\n    rimraf: ^6.0.1 => 6.0.1\n    socket.io-client: ^4.7.5 => 4.8.0\n    sonner: ^1.5.0 => 1.5.0\n    sort-by: ^1.2.0 => 1.2.0\n    tailwind-merge: ^2.4.0 => 2.5.4\n    tailwindcss: ^3.4.7 => 3.4.14\n    tsx: ^4.16.5 => 4.19.1\n    type-fest: ^4.23.0 => 4.26.1\n    typescript: ^5.7.2 => 5.7.3\n    unplugin-fonts: ^1.1.1 => 1.1.1\n    use-debounce: ^10.0.2 => 10.0.4\n    validator: ^13.12.0 => 13.12.0\n    vite: ^5.3.5 => 5.4.10\n    vite-tsconfig-paths: ^5.0.1 => 5.0.1\n    vitest: ^3.0.3 => 3.0.3\n    zod: ^3.23.8 => 3.23.8\n```","author":{"url":"https://github.com/xeroxoid","@type":"Person","name":"xeroxoid"},"datePublished":"2025-04-10T18:47:15Z","url":"https://github.com/clerk/javascript/issues/5590"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:18adf780-ecf0-b6fe-9dff-89b8efd20bd4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC126:27DCD7:1239CAC:18DADE6:6AFB6A08
html-safe-noncecbc500d8ffe8a990d93336d69c5a2a745ac2e83916180549183ff3b13464e96d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTI2OjI3RENENzoxMjM5Q0FDOjE4REFERTY6NkFGQjZBMDgiLCJ2aXNpdG9yX2lkIjoiNDYxNjU2OTY3MjkxNTcwODQyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac358dd28586fcb500c11f0d6d21fb2a2e9ada1c0105075b31928e1dd0e5bddf70
hovercard-subject-tagissue:2986577627
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clerk/javascript/5590/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f7901fe92052e909a3246b2bd1bd6ffde06249380b08145bec8a2c103c123874/clerk/javascript/issues/5590
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f7901fe92052e909a3246b2bd1bd6ffde06249380b08145bec8a2c103c123874/clerk/javascript/issues/5590
og:image:altPreliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamexeroxoid
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/clerk/javascript/issues/5590#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F5590
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F5590
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/issues/5590
Reloadhttps://github.com/clerk/javascript/issues/5590
Reloadhttps://github.com/clerk/javascript/issues/5590
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues45 (45)https://github.com/clerk/javascript/issues
Pull requests110 (110)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/5590
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/5590
redirect_url is appended after signing outhttps://github.com/clerk/javascript/issues/5590#top
Stalehttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22Stale%22
improvementhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22improvement%22
sdkhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22sdk%22
https://github.com/xeroxoid
xeroxoidhttps://github.com/xeroxoid
on Apr 10, 2025https://github.com/clerk/javascript/issues/5590#issue-2986577627
https://clerk.com/docshttps://clerk.com/docs
https://github.com/clerk/javascript/issueshttps://github.com/clerk/javascript/issues
https://clerk.com/discordhttps://clerk.com/discord
https://github.com/clerk/clerk-react-quickstarthttps://github.com/clerk/clerk-react-quickstart
as per documentationhttps://clerk.com/docs/guides/custom-redirects
https://github.com/clerk/clerk-react-quickstarthttps://github.com/clerk/clerk-react-quickstart
xeroxoidhttps://github.com/xeroxoid
needs-triageA ticket that needs to be triaged by a team memberhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22needs-triage%22
on Apr 10, 2025https://github.com/clerk/javascript/issues/5590#event-17211756603
https://github.com/xeroxoid
xeroxoidhttps://github.com/xeroxoid
on Apr 10, 2025https://github.com/clerk/javascript/issues/5590#issuecomment-2794850021
This issuehttps://github.com/clerk/javascript/issues/1325
https://github.com/Dannynsikak
Dannynsikakhttps://github.com/Dannynsikak
on Jun 7, 2025https://github.com/clerk/javascript/issues/5590#issuecomment-2953154098
linearhttps://github.com/apps/linear
improvementhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22improvement%22
sdkhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22sdk%22
needs-triageA ticket that needs to be triaged by a team memberhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22needs-triage%22
on Jun 12, 2025https://github.com/clerk/javascript/issues/5590#event-18119109093
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
on Jul 13, 2025https://github.com/clerk/javascript/issues/5590#issuecomment-3066277402
contributing guidehttps://github.com/clerk/javascript/blob/main/docs/CONTRIBUTING.md
clerk-cookiehttps://github.com/clerk-cookie
Stalehttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22Stale%22
on Jul 13, 2025https://github.com/clerk/javascript/issues/5590#event-18602702114
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
on Jul 24, 2025https://github.com/clerk/javascript/issues/5590#issuecomment-3111519474
contributing guidehttps://github.com/clerk/javascript/blob/main/docs/CONTRIBUTING.md
clerk-cookiehttps://github.com/clerk-cookie
not plannedhttps://github.com/clerk/javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jul 24, 2025https://github.com/clerk/javascript/issues/5590#event-18784444053
Sign up for freehttps://github.com/signup?return_to=https://github.com/clerk/javascript/issues/5590
Sign in to commenthttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/5590
Stalehttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22Stale%22
improvementhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22improvement%22
sdkhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22sdk%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.