fast icon indicating copy to clipboard operation
fast copied to clipboard

feat: add passive link/URL handling mode to fast-router

Open hajo-travanto opened this issue 3 years ago • 0 comments

🙋 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

hajo-travanto avatar Jan 14 '23 00:01 hajo-travanto