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

fix: navigateTo throws error on local provider #540

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

zoey-kaiser
Copy link
Member

Closes #429

Due to the fact that we compose full URLs, when redirecting in the local provider, navigateTo throws an error, as it seems like we redirect to external URLs, as we use full urls and not relative ones.

The easiest fix is to allow the local provider to redirect externally, which is what this PR does.

Checklist:

  • issue number linked above after pound (#)
    • replace "Closes " with "Contributes to" or other if this PR does not close the issue
  • manually checked my feature / checking not applicable
  • wrote tests / testing not applicable
  • attached screenshots / screenshot not applicable

@zoey-kaiser zoey-kaiser changed the title fix: navigateTo external throws error on local provider fix: navigateTo throws error on local provider Oct 11, 2023
@zoey-kaiser zoey-kaiser merged commit 26aaa45 into main Oct 11, 2023
3 checks passed
@zoey-kaiser zoey-kaiser deleted the allow-external-navigation branch October 11, 2023 15:24
@IsraelOrtuno
Copy link
Contributor

Any thoughts in maybe making this optional/configurable? It causes a full refresh of the page and that's not really the expected behaviour when logging in / out.

@zoey-kaiser
Copy link
Member Author

Any thoughts in maybe making this optional/configurable? It causes a full refresh of the page and that's not really the expected behaviour when logging in / out.

Thats a good point. Ill investigate it tomorrow! Thanks for bringing it up!

@IsraelOrtuno
Copy link
Contributor

Good! I will create an issue just to keep track of it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Navigating to external URL is not allowed by default. Use navigateTo (url, { external: true })
2 participants