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

Multiple browser tabs #6

Open
SebastianSchoeps opened this issue Nov 28, 2022 · 2 comments
Open

Multiple browser tabs #6

SebastianSchoeps opened this issue Nov 28, 2022 · 2 comments

Comments

@SebastianSchoeps
Copy link

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

@ralphjsmit
Copy link
Owner

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.

@renky
Copy link

renky commented Sep 21, 2023

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:

  1. 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
  2. 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...

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

3 participants