Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > UrlEncoded QueryString View modes: 
User avatar
Member
Member
ben.cripps-adactus.co - 8/29/2012 9:52:33 AM
   
RE:UrlEncoded QueryString
Hi,

We have the same issue serving up from the Google CDN.

The web part properties are set to:

//ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js

But it comes out in the source code as:

mydomain.com/ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js

Did any of you get to the bottom of this and if so what was the solution?

Many thanks in advance, Ben.

User avatar
Member
Member
robert-tailor.co - 8/29/2012 4:14:46 PM
   
RE:UrlEncoded QueryString
ben.cripps-adactus.co wrote: Did any of you get to the bottom of this and if so what was the solution?

Many thanks in advance, Ben.

Sorry, no. I'm still waiting to hear back from Kentico about this.

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 8/30/2012 1:40:56 PM
   
RE:UrlEncoded QueryString
You can write a custom macro or macro method that returns the protocol of the current request and then put something like this in your code:

{#currentprotocol#}://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js
//OR
<%=Request.Url.Scheme %> ://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js
if you get errors about the control collection cannot be modified because of code blocks then wrap this code inside a Placeholder control.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 9/20/2012 10:15:12 AM
   
RE:UrlEncoded QueryString
Hi,

is it possible to set the url without the leading double slash? As far as I know, there are two options to specify the URL - starting with http:// or starting directly with the domain. I don't see the reason to use // in the urls. The double backslashes \\ are fine in the UNC paths, but that's different thing.

The below suggestion with custom macro detecting the protocol currently seems to be the best way if the behavior doesn't meet your needs.

Regards,
Zdenek

1 2