You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, February 11th 2015, 12:24am

Is there a way to switch off automatic url correction from krpano?

Hi.

Is there such way from subject?

I load xml by loadpano('http://localhost/ajax/pano.xml') function with below content:

<krpano>
<image type="CUBE" multires="true" tilesize="512" progressive="true">
...
<level tiledimagewidth="512" tiledimageheight="512">
<cube url="%$sv.tilespath%/panoname/l1_%s_%v_%h.jpg" />
</level>
...
</image>
</krpano>

Variable sv.tilespath="http://someaddress.com"

After automatic correction url address becomes "http://localhost/ajax/http://someaddress.com/panoname/l1_1_1_1.jpg"

But I dont need "http://localhost/ajax/" prefix in result url.



Thanks in advance

2

Friday, February 13th 2015, 9:39am

And "http://someaddress.com/panoname/l1_1_1_1.jpg" is not a relative URL. Why is it supposed to be a relative to "http://localhost/ajax"?

3

Friday, February 20th 2015, 11:05am

Hi,

the 'url' attribute is a special one - it will be modified during xml loading.

When the value of the url attribute in the xml is a relative one, then the relative path of the xml will be added.

See here:
http://krpano.com/docu/xml/#url-notes

The resolving of the %$var% happens later on the loading request, but at this point the path was already added.

I will consider adding a special handling for the next releases here - when the value of $var will be an absolute path, then the part before that variable will be stripped away.

Best regards,
Klaus

4

Tuesday, February 24th 2015, 1:36pm

Thanks

5

Thursday, March 5th 2015, 7:47pm

Hi,

this works now in the new 1.18.3 version.

Best regards,
Klaus

6

Thursday, April 2nd 2015, 3:04pm

Thanks, Klaus