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

Allow optional host for matching #376

Open
Meisolsson opened this issue Aug 13, 2020 · 0 comments
Open

Allow optional host for matching #376

Meisolsson opened this issue Aug 13, 2020 · 0 comments

Comments

@Meisolsson
Copy link

Hi,

We ran into case where we would like preact-router to handle complete URL:s. For example we get a link like https://example.com/test from our CMS and when the user clicks it we would prefer if Preact handled that but it should not handle https://other-site.com/test. I propose a prop on the router which can be checked against like:

<Router host={'https://example.com'}>
   ...
</Router>
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

No branches or pull requests

1 participant