Skip to content

fix(elements): Preserve absolute URLs passed via redirect_url#3947

Merged
dstaley merged 1 commit intomainfrom
ds.fix/elements-abs-redirect-url
Aug 14, 2024
Merged

fix(elements): Preserve absolute URLs passed via redirect_url#3947
dstaley merged 1 commit intomainfrom
ds.fix/elements-abs-redirect-url

Conversation

@dstaley
Copy link
Member

@dstaley dstaley commented Aug 13, 2024

Description

Adds support for navigating to absolute URLs via context.router.push. This allows redirect_url to be an absolute URL.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Aug 13, 2024

🦋 Changeset detected

Latest commit: c32c4fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/elements Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: https://github.com/clerk/javascript/blob/e5c989a035fa16413414c213febe16fcdbeef9b1/packages/shared/src/url.ts would be a fitting place for this utility but feel free to ignore

@dstaley dstaley merged commit 362ad5f into main Aug 14, 2024
@dstaley dstaley deleted the ds.fix/elements-abs-redirect-url branch August 14, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants