feat: add passive link/URL handling mode to fast-router #6605
Labels
area:fast-router
Pertains to fast-router
feature
A new feature
status:under-consideration
Issue is being reviewed by the team.
🙋 Feature Request
Currently the fast-router is catching the URL changes from outside the webcomponent itself, too
🤔 Expected Behavior
The router should have an option to enable/disable this behavior
😯 Current Behavior
It executes the internal process for it, including the fallback handling
💁 Possible Solution
Either a way to turn on/off the routing functionality on demand or restrict it to webcomponent internal links and URL switches
🔦 Context
The webcomponent is embedded in multiple websites as an extra service, but in the current way it kinda "damages" the websites if the routing is not containing a workaround to prevent this behavior
💻 Examples
E.g. if a link with a relative path in the URL is clicked like "/abc1" which might not be intended to be handled by it, the fast-router still executes itself and other routers or the default browser have no chance to "jump in" and apply the intended routing
The text was updated successfully, but these errors were encountered: