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

Signin/Register page with return url #6883

Open
marwie opened this issue Dec 13, 2024 · 2 comments
Open

Signin/Register page with return url #6883

marwie opened this issue Dec 13, 2024 · 2 comments
Labels
pending-verification Something is still under investigation

Comments

@marwie
Copy link

marwie commented Dec 13, 2024

What problem did you meet?

Users navigating to the logto signin/signup page do currently not have a way to navigate back to the previous page without using the browser return back navigation

Describe what you'd like Logto to have

It would be great to be able to pass in a return url to the sign-in/register flow call to the logto client that then appears as a back link on the sign in page (or alternatively is the page that can be opened when clicking the logo).

@wangsijie wangsijie added the feature-request Something cool or not cool label Dec 13, 2024
@charIeszhao
Copy link
Member

Hi, you can use postRedirectUri. For example:

await signIn({
  redirectUri: 'https://your-app.com/callback',
  postRedirectUri: 'https://your-app.com/previous-page-route'
});

@charIeszhao charIeszhao added pending-verification Something is still under investigation and removed feature-request Something cool or not cool labels Dec 25, 2024
@marwie
Copy link
Author

marwie commented Dec 25, 2024

Hello, thanks for the reply. I'm aware of that and using it already but I'm asking about either a UI element on the sign-in page or about an option to apply the return link to the logo to be clickable - to provide an option if the wants to cancel the signin/signup flow.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-verification Something is still under investigation
Development

No branches or pull requests

3 participants