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

Waypoint link reloads room on first click #3149

Open
johnshaughnessy opened this issue Oct 9, 2020 · 6 comments
Open

Waypoint link reloads room on first click #3149

johnshaughnessy opened this issue Oct 9, 2020 · 6 comments
Labels
bug jira-hubs P2 Address when able

Comments

@johnshaughnessy
Copy link
Contributor

johnshaughnessy commented Oct 9, 2020

Description
See #2983

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Hardware

  • Device: [e.g. Desktop, phone, VR headset]
  • OS: [e.g. Windows, iOS, Linux]
  • Browser [e.g. Firefox]

Additional context
Add any other context about the problem here.

┆Issue is synchronized with this Jira Task

@johnshaughnessy johnshaughnessy added bug needs triage For bugs that have not yet been assigned a fix priority labels Oct 9, 2020
@misslivirose misslivirose added P2 Address when able and removed needs triage For bugs that have not yet been assigned a fix priority labels Oct 12, 2020
@emclaren
Copy link
Contributor

Just wanted to note that this is an issue that was also mentioned by a community member in an email last week

@oli414
Copy link

oli414 commented Dec 7, 2020

I've been able to find a pattern with this issue.

Our scene appears to have working teleports, but as soon as a user spawns an object in the scene, the teleports instead reloads the page. I've been able to reproduce the issue on both Chrome and Firefox so I think it's fair to say that this might somehow be the cause of the issue.

However:
This issue doesn't occur if your url has a trailing /
https://hubs.mozilla.com/edYu459/loyal-giant-gala will have the issue but https://hubs.mozilla.com/edYu459/loyal-giant-gala/ will not.

Temporary Fix:
Make sure that the room URL you share ends with a slash.

@Charlesc22
Copy link

We've also seen this bug, but have not drilled down to find the pattern. will check for the forward slash at the end though
Thanks for the tip @oli414

@Exairnous
Copy link
Contributor

Exairnous commented May 16, 2021

From testing I've done it appears that links to a waypoint will reload the room if the link address does not match the current room URL regarding the trailing slash. This is why adding an object (or changing avatars, etc.) will cause links to reload the room if a trailing slash is not included, because opening the object place menu will add a trailing slash to the current room URL (but the link URL doesn't contain a trailing slash). The room will also be reloaded if the waypoint link URL contains a trailing slash, but the room URL does not (they must match or the room will reload).

The only way I've found to reliably work with waypoint links is to setup a link (or image with href) to contain the full room address, including a trailing slash, then the #WAYPOINTNAME, and then give everyone the room link with the trailing slash (potentially including query string parameters after the slash); the downside with this is that the favorite room links don't include the trailing slash, so if you visit a room from your favorites menu with waypoint links you'll run into the reloading problem :(

Example links:

WORKS ALL OF THE TIME:
waypoint link: https://hubs.mozilla.com/<room-code>/<room-name>/#WAYPOINTNAME
room link: https://hubs.mozilla.com/<room-code>/<room-name>/

WORKS SOME OF THE TIME (will work until some dialog changes the room URL to contain a slash):
waypoint link: https://hubs.mozilla.com/<room-code>/<room-name>#WAYPOINTNAME
room link: https://hubs.mozilla.com/<room-code>/<room-name>

NEVER WORKS:
waypoint link: https://hubs.mozilla.com/<room-code>/<room-name>#WAYPOINTNAME
room link: https://hubs.mozilla.com/<room-code>/<room-name>/
OR
waypoint link: https://hubs.mozilla.com/<room-code>/<room-name>/#WAYPOINTNAME
room link: https://hubs.mozilla.com/<room-code>/<room-name>

yakyouk added a commit to yakyouk/hubs that referenced this issue May 20, 2021
@yakyouk
Copy link
Contributor

yakyouk commented May 20, 2021

Created #4272 to fix this; not sure how to have that pull request automatically link to this issue.

netpro2k added a commit that referenced this issue Jun 3, 2021
@Exairnous
Copy link
Contributor

#4272 has been merged and I can confirm that this has been fixed in both Chromium 91.0.4472.77 and Firefox 89.0 in Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug jira-hubs P2 Address when able
Projects
None yet
Development

No branches or pull requests

7 participants