URL change: the trailing slash is striking again

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

URL change: the trailing slash is striking again

Michel Bany
Lukas,

Not sure if this has already been reported,
        (WAUrl new)
                addToPath: 'files';
                addToPath: 'basic.css';
                asString
gives
        '/files/basic.css/'

If the css stylesheet is refering to images in the same file library,  
then you need something ugly like this
        url(../bg.jpg)

Instead I am hacking this (ugly too but not as much) in  
WAUrl>>pathString for the trailing slash.
        (path last includes: $.) ifFalse: [stream nextPut: $/]

Cheers,
Michel.



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