I noticed it first on the forums here: put the % sign in the subject and you won't be able to click on the post because it's not encoded when the URL is created.
My regular umbraco installation does it as well.
Where in config or code can I make the change to strip/encode the percent sign when generating the umbraco URL for a page/post?
Yes, you need to publish pages after making a change to the urls.
Either open the offending page(s) and click the Save & Publish button on the toolbar for each. Or right-click the top-most page(s) in your content tree and select the 'Publish' menu. Be sure to tick the 'children' box as well. That will publish all the pages in your site below the one you selected in one quick action.
(Note that the 'Republish entire site' menu when you right-click the 'Content' node in the treeview is NOT the same thing and won't re-calculate urls).
Percent sign causes bad urls
I noticed it first on the forums here: put the % sign in the subject and you won't be able to click on the post because it's not encoded when the URL is created.
My regular umbraco installation does it as well.
Where in config or code can I make the change to strip/encode the percent sign when generating the umbraco URL for a page/post?
Umbraco 4.0.3
Pete
Open up config/umbracoSettings.config
There's a section requesthandler / urlReplacing there, it allready has a bunch of characters that are replaced.
Add:
<char org="%">-</char>
Or replace the - with anything you want it replaced with.
Peter
I did that earlier and the URLs didn't change. I even bounced the site.
Do you need to republish or something for that to take effect?
Pete
Yes, you need to publish pages after making a change to the urls.
Either open the offending page(s) and click the Save & Publish button on the toolbar for each. Or right-click the top-most page(s) in your content tree and select the 'Publish' menu. Be sure to tick the 'children' box as well. That will publish all the pages in your site below the one you selected in one quick action.
(Note that the 'Republish entire site' menu when you right-click the 'Content' node in the treeview is NOT the same thing and won't re-calculate urls).
cheers,
doug.
Thanks guys. That makes sense. Thanks also for the republish tip.
Now, someone needs to make that change by default and also here on the forums :)
Pete
is working on a reply...