Developer forum

Forum » Development » Problem with Customized URLs

Problem with Customized URLs


Reply
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

Replies

 
Nicolai Høeg Pedersen
Reply

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.

 
Reply
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
 
Nicolai Høeg Pedersen
Reply

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&..."

 
Reply
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

 

You must be logged in to post in the forum