Hello!
I tried to use the Customized URLs function of converting module urls, but it does not work properly with my custom module.
The original url is (for example):
"Blog.aspx?Post=Dynamicweb 7 - ein zukunftweisendes System"
The converted url is:
Blog/[Post/Dynamicweb]/Dynamicweb 7 - ein zukunftweisendes System.aspx 7 - ein zukunftweisendes System
Any suggestions how to fix this?
//greetings - Josef
Developer forum
E-mail notifications
Problem with Customized URLs
Posted on 01/04/2010 12:37:54
Replies
Nicolai Høeg Pedersen
Posted on 06/04/2010 10:14:19
It seems like you have spaces in your URL. That is not allowed following standards.
So your parameters should be encoded: encodeURIComponent in javascript or Server.UrlEncode in .NET
Otherwise I'll need a link so I can see all of the context.
Posted on 06/04/2010 11:41:27
Thanks a lot,
I guess this was one of those beginner problems :/
I noticed, if i try to set the formatting to "foldered querystring", the spaces will be removed, but thats affecting the parameter which is passed to the module, so that the parameter is converted from "Dynamicweb 7 - ein zukunftweisendes System" to "Dynamicweb7-einzukunftweisendesSystem".
You can have a look at it here (it's our test app):
http://anyneu7.anytest.de/Blog.aspx
Is there any known way to avoid this? If not i will set the formatting to "Encryption".
Thanks again
//greetings - Josef
I guess this was one of those beginner problems :/
I noticed, if i try to set the formatting to "foldered querystring", the spaces will be removed, but thats affecting the parameter which is passed to the module, so that the parameter is converted from "Dynamicweb 7 - ein zukunftweisendes System" to "Dynamicweb7-einzukunftweisendesSystem".
You can have a look at it here (it's our test app):
http://anyneu7.anytest.de/Blog.aspx
Is there any known way to avoid this? If not i will set the formatting to "Encryption".
Thanks again
//greetings - Josef
Nicolai Høeg Pedersen
Posted on 06/04/2010 11:55:43
You cannot avoid the removing of spaces - they are not allowed...
So - if you do not want that, instead of doing "...&post=some other third&..." do like this: "...&post=some-other-third&..."
Posted on 07/04/2010 07:05:04
Looks like that's the only working way left, requires a bit of changing the module, but better then turning customized urls off.
Thanks for the quick help, sorry for the late answer.
//greetings Josef
Thanks for the quick help, sorry for the late answer.
//greetings Josef
You must be logged in to post in the forum