Logout flow is redirect to wrong URL
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 187
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
Clicking on Logout button in Signin UI will lead to a broken URL.
My app is configure to run locally at port 8001, there should be noway that the UI redirect me to
https://identity-7fbf566ddc-kd7s4:3000/self-service/logout?token=ory_lo....
Reproducing the bug
Using
"@ory/elements-react": "^1.0.0-rc.5",
"@ory/nextjs": "^1.0.0-rc.0",
Relevant log output
Relevant configuration
Version
"@ory/elements-react": "^1.0.0-rc.5", "@ory/nextjs": "^1.0.0-rc.0",
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Logout button behavior with @ory/elements-react 1.0.0-rc.5 and @ory/nextjs 1.0.0-rc.0 in the reported local setup. Trace how the logout URL is selected and verify that completion redirects to the application's local port rather than the broken identity host URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, react, typescript
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100