Looking to redirect 'what%27s-on' to 'whats-on'. Originally the page name was "What's On" and the url was "what's-on". After updating Umbraco to 4.7.1.1 and the page name to "Whats On", there are old links to "What's On", for example, "what%27s-on".
I have added umbracoUrlAlias property and added the following variations with no luck
I intend to write about this soon, but here's my take:
Only rely on the `Name` of a node to be an identifier for the backend. It will be used to list nodes in the CMS, refer to them specifically in code (perhaps, rarely!) and to generate a URL, but not 'appropriate' to show the user when outputting stuff. That means never to expect it to be a 'friendly name' for a node (i.e. grammatically correct, human readable), such a name should be given elsewhere (metaTitle, documenTitle, or whatever). Which also means it should be constrained to be a 'URL friendly' string - basically treat it like a file name in a programming environment and never, ever use any 'special characters' in it (and yes, I'm including forming contractions here, since rarely should they be used for anything more than personal file management) - only allow alphanumeric characters.
That is exactly what I've been trying to tell our team and clients. But upon inheriting a legacy Umbraco site, this issue has arisen and not found a solution for it yet :(
I have successfully removed the apostrophe from the node name. Legacy links are the issue whereby they are looking for "what's-on.apx" or "what%27s-on.aspx".
I have set the Umbraco Url Alias property as described earlier without any luck.
Redirect what%27s-on to whats-on
Looking to redirect 'what%27s-on' to 'whats-on'. Originally the page name was "What's On" and the url was "what's-on". After updating Umbraco to 4.7.1.1 and the page name to "Whats On", there are old links to "What's On", for example, "what%27s-on".
I have added umbracoUrlAlias property and added the following variations with no luck
whats-on,what%27s-on
Any ideas of how to resolve this?
I intend to write about this soon, but here's my take:
Only rely on the `Name` of a node to be an identifier for the backend. It will be used to list nodes in the CMS, refer to them specifically in code (perhaps, rarely!) and to generate a URL, but not 'appropriate' to show the user when outputting stuff. That means never to expect it to be a 'friendly name' for a node (i.e. grammatically correct, human readable), such a name should be given elsewhere (metaTitle, documenTitle, or whatever). Which also means it should be constrained to be a 'URL friendly' string - basically treat it like a file name in a programming environment and never, ever use any 'special characters' in it (and yes, I'm including forming contractions here, since rarely should they be used for anything more than personal file management) - only allow alphanumeric characters.
That is exactly what I've been trying to tell our team and clients. But upon inheriting a legacy Umbraco site, this issue has arisen and not found a solution for it yet :(
The solution is to remove the apostrophe from the node name.
I have successfully removed the apostrophe from the node name. Legacy links are the issue whereby they are looking for "what's-on.apx" or "what%27s-on.aspx".
I have set the Umbraco Url Alias property as described earlier without any luck.
is working on a reply...