node in URL

Q&A about the latest versions
Post Reply
Posts: 3
Joined: Mon Feb 08, 2021 1:40 pm

Thu Feb 18, 2021 3:27 am

Hi all!!!

How can I make the node name appear after index.html?

I know that I can call a specific node by passing the #node parameter, but I need the opposite, that as I move through the panorama, the node number or another identifier variable appears in the URL for tracking purposes.

Tks! :D
User avatar
Posts: 450
Joined: Wed Aug 15, 2007 1:02 pm

Thu Feb 18, 2021 3:10 pm

Yes. You can add the name/ID in Custom Node ID in User Data.
Posts: 3
Joined: Mon Feb 08, 2021 1:40 pm

Fri Feb 19, 2021 10:56 pm

Hello, thanks for the help!

I tried everything and the number of the node does not appear in the browser url :(

I have already activated the show ID of the node in the advanced settings and I have already activated the direct access to the node in the HTML output, what can I be doing wrong? I've tried everything lol
User avatar
Posts: 11116
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

Sat Feb 20, 2021 11:15 pm

You can show the node id in the browser address bar.
In this example, the tour is in node3.

1.png (21.78 KiB) Viewed 35 times

To make this work you need to add a container to your skin and give it the action.

2.png (33.72 KiB) Viewed 35 times

For the code just copy and paste the following in the URL text field:

Code: Select all

javascript: history.replaceState({}, player.userdata.title, location.href.replace(location.hash,"") + '#' + player.getCurrentNode());

Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
Post Reply