Big problem with paths to website box  

Share your tips and tricks here or get help with any Panotour 2.0 problem!
No bug reports (of any kind) in this forum!
no avatar
jschrader
Member
 
Posts: 206
Joined: Mon Apr 22, 2013 3:51 pm

Big problem with paths to website box

by jschrader » Thu Mar 27, 2014 2:59 pm

I use website boxes to show text that explains details in the pano.

The code PTP generates expects the html to be in the root of the tour.
In the code it says "/file.html" but in fact the viewer is looking for the file in "../file.html".
(This is a known issue since long, but noone seems to care).

Most likely because people use absolute URLs anyway.
When I use absolute URLs the system works fine.
The BIG problem is, that the tour will be distributed as a package to many people.
The need to tell everyone to change 40 paths to the url where the tour is hosted on their webserver is unbearable and complete nonsense.

When I use a path like %FIRSTXML%../file.html the html is displayed on my computer but not on the customer's computer although all caches are cleared and we both are looking at the same sources over the web.

How can this be solved?

User avatar
bdd
Kolor Team
 
Posts: 1775
Joined: Tue Jan 18, 2011 4:05 pm

Re: Big problem with paths to website box

by bdd » Fri Mar 28, 2014 11:56 am

Hello Jürgen

Relative paths are correctly handled by website boxes.
So if you set a valid relative path like one of the following, it should work :

./mypage1.html
../mypage2.html
../myfolder/mypage3.html
./myfolder2/mypage4.html

Do not use krpano placeholders in URL fields of PTP!

I sent you by PM the URL of a tour using relative paths in website boxes.

Gérald


Return to Using Panotour / Panotour Pro

Who is online

Users browsing this forum: No registered users and 4 guests