livewire-urls
livewire-urls copied to clipboard
Multiple browser tabs
Thanks for this package!
However, it does not work if multiple browser tabs are used (because they seem to use the same session).
Anything we can do against that?
Thanks, Sebastian
Hey Sebastian, good catch of you. Yep, there is a better solution than using the session, since there is also a way to "hijack" into Livewire and get the original route. I planned that to release that in a V2 of this, but I can't promise a date for that.
This is also a problem with the new livewire navigation feature. If you use the wire:navigate.hover function and prefetch the pages, the session is also filled with urls even if this urls are never clicked and visited... this should be also taken in account, if a "tab"-solution is found - because this problem also happens in one tab...
I was already thinking about it a few days what could be a good solution - maybe I share my thoughts:
- if we stick with sessions I was thinking about saveing the referrer to the url. when I want the last different url, we have to roll back until the referrer changes, because this is the last url that was not loaded by the current page
- I was wondering if it really makes sense to hook into livewire - since we are in this package only interested in NON-Livewire requests... even if livewire offers a possibility to get the Current Real url - we would still not have the history... so there is still needed a solution to save also previeous urls somehow...