WAUrl absolute encoding for url with @

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

WAUrl absolute encoding for url with @

Sabine Manaa
Hi,

I want to add the following url to my header.
aHtmlRoot script url: (WAUrl absolute: 'https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js')

It fails (because of the encoding(?)) - it tries to load this:
https://npmcdn.com/leaflet%401.0.0-rc.3/dist/leaflet.js

Can anyone give me a hint what to do with the WAUrl to render correctly?
I assume it is easy but I don't get it.

Regards
Sabine
Reply | Threaded
Open this post in threaded view
|

Re: WAUrl absolute encoding for url with @

Karsten Kusche
Hi Sabine,

That’s probably a bug in one of the #decode: methods on class-side or #encodeOn: decides to encode the @ as Percent-Encoding.
If it’s a bug in the #decode: methods you can create an empty WAUrl and add parts to the path manually. If it’s a bug in the #encodeOn: Methode you may need to fix the method.

Karsten

Am 10. August 2016 um 13:39:59, Sabine Manaa ([hidden email]) schrieb:

Hi,

I want to add the following url to my header.
aHtmlRoot script url: (WAUrl absolute:
'https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js')

It fails (because of the encoding(?)) - it tries to load this:
https://npmcdn.com/leaflet%401.0.0-rc.3/dist/leaflet.js

Can anyone give me a hint what to do with the WAUrl to render correctly?
I assume it is easy but I don't get it.

Regards
Sabine



--
View this message in context: http://forum.world.st/WAUrl-absolute-encoding-for-url-with-tp4910307.html
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WAUrl absolute encoding for url with @

Sabine Manaa
Hi Karsten,

thank you! I just found out that

works.

Regards
Sabine

2016-08-10 14:43 GMT+02:00 Karsten Kusche [via Smalltalk] <[hidden email]>:
Hi Sabine,

That’s probably a bug in one of the #decode: methods on class-side or #encodeOn: decides to encode the @ as Percent-Encoding.
If it’s a bug in the #decode: methods you can create an empty WAUrl and add parts to the path manually. If it’s a bug in the #encodeOn: Methode you may need to fix the method.

Karsten

Am 10. August 2016 um 13:39:59, Sabine Manaa ([hidden email]) schrieb:

Hi,

I want to add the following url to my header.
aHtmlRoot script url: (WAUrl absolute:
'https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js')

It fails (because of the encoding(?)) - it tries to load this:
https://npmcdn.com/leaflet%401.0.0-rc.3/dist/leaflet.js

Can anyone give me a hint what to do with the WAUrl to render correctly?
I assume it is easy but I don't get it.

Regards
Sabine



--
View this message in context: http://forum.world.st/WAUrl-absolute-encoding-for-url-with-tp4910307.html
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/WAUrl-absolute-encoding-for-url-with-tp4910307p4910313.html
To start a new topic under Seaside General, email [hidden email]
To unsubscribe from WAUrl absolute encoding for url with @, click here.
NAML