ory / ory/elements

Allow for framework based navigation

Open
#590 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Triage
Dominant language
TypeScript
Stars
187
Forks
80
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
Ory Network Project

No response

Describe your problem

Hi,

I'm using the elements-react package and I'd like to understand if there's a way to allow my framework to handle navigation/redirects for rendered links.

As an example, the login component displays a "Recover Account" and "Sign Up" link that is a <a> </a> element which triggers a full browser redirect to Kratos which then redirects to the appropriate page with the flow ID. It would make for a smoother user experience if my framework could handle the redirect avoiding the need to re-fetch all the UI elements.

This is somewhat hinted at in the elements-react readme but it's limited to redirects in our code. There is also the OryFlowComponentOverrides but it doesn't seem like links can be overridden.

Describe your ideal solution

A way to override links in OryFlowComponentOverrides seems reasonable.

Workarounds or alternatives

None

Version

1.1.0

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the elements-react README and the OryFlowComponentOverrides API described in the issue. Trace how the login component renders the "Recover Account" and "Sign Up" links, then determine the override surface needed so a framework can handle navigation without a full browser redirect; done means those links support framework-controlled redirects.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.