urlReplacing not working for quote character in 4.5.2, or is it just me?
Has anyone else found this problem?
When I create a page with a single quote character in the name, Umbraco doesn't strip out that character and I end up with a page that can't be lionked to in the RTE?
I checked the umbracoSettings.config file and " is listed in the urlReplacing section. I also tried adding the character inself as opposed to the entity, as in ' but I can still create pages with the single quote in the node name.
Sounds like you are doing the right thing by adding additional rules in the umbracoSettings.config, I think it's just a case of getting the right character. " is actually a double quote, so you may want to add an entry for ' or ' for single quotes ( ' usually does it for me).
Also, when you make changes, you need to make sure you republish your page, as this is when the URL name is generated.
Doh! obviously typing faster than I can think this morning, however the problem's still there.
I already tried an entry for ' and I've now changed this to ' and I'm still getting the same problem. I've removed the quote manually, published the page, then added it back in and published again and it still gets added.
I've taken it out manually, but think it's something clients might struggle to remember to do.
I'd probably add both just to be on the safe side, but also look to add rules for curly single quotes too. You can get the different html encoded values from here:
It's definitely a straight single quote in this case because I typed it myself. If you type a single quote into the name of a page in a 4.5.2 site, does the single quote get removed okay?
I republished the entire site and restarted the app pool and it's sorted the file name, thanks for your input.
Unfortunately I can't link to the page using the RTE because of the single quote, but that's been resolved in the latest changeset as per this item on Codeplex.
http://umbraco.codeplex.com/workitem/29904 has been marked as closed with the comment 'Appears to be fixed in latest changeset' however the affected file hasn't been modified for 6 months - latest changeset has same issue. I've posted a fix in the other thread and the codeplex ticket - hopefully it will get picked up before 4.6.2 next week.
urlReplacing not working for quote character in 4.5.2, or is it just me?
Has anyone else found this problem?
When I create a page with a single quote character in the name, Umbraco doesn't strip out that character and I end up with a page that can't be lionked to in the RTE?
I checked the umbracoSettings.config file and " is listed in the urlReplacing section. I also tried adding the character inself as opposed to the entity, as in ' but I can still create pages with the single quote in the node name.
TIA
Tom
Hey Tom,
Sounds like you are doing the right thing by adding additional rules in the umbracoSettings.config, I think it's just a case of getting the right character. " is actually a double quote, so you may want to add an entry for ' or ' for single quotes ( ' usually does it for me).
Also, when you make changes, you need to make sure you republish your page, as this is when the URL name is generated.
Matt
Matt,
Doh! obviously typing faster than I can think this morning, however the problem's still there.
I already tried an entry for ' and I've now changed this to ' and I'm still getting the same problem. I've removed the quote manually, published the page, then added it back in and published again and it still gets added.
I've taken it out manually, but think it's something clients might struggle to remember to do.
Tom
Hi Tom,
I'd probably add both just to be on the safe side, but also look to add rules for curly single quotes too. You can get the different html encoded values from here:
http://www.utexas.edu/learn/html/spchar.html
I'd look to also add right and left single curly quotes just in case then try again.
Matt
Thanks Matt,
It's definitely a straight single quote in this case because I typed it myself. If you type a single quote into the name of a page in a 4.5.2 site, does the single quote get removed okay?
Tom
Hey Tom,
Yea, I use it all the time, it's one of the first rules I setup.
I'd say double check you republish the page, and maybe restart your app pool just for good measure.
Matt
Matt,
I republished the entire site and restarted the app pool and it's sorted the file name, thanks for your input.
Unfortunately I can't link to the page using the RTE because of the single quote, but that's been resolved in the latest changeset as per this item on Codeplex.
http://umbraco.codeplex.com/workitem/29904
Hey Tom,
Ahhh, I wasn't aware of that RTE issue, so nice digging. Glad I could help in some way though.
Matt
I've posted about the RTE issue here.
http://umbraco.codeplex.com/workitem/29904 has been marked as closed with the comment 'Appears to be fixed in latest changeset' however the affected file hasn't been modified for 6 months - latest changeset has same issue. I've posted a fix in the other thread and the codeplex ticket - hopefully it will get picked up before 4.6.2 next week.
is working on a reply...