Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sean Dooley 289 posts 528 karma points
    Apr 13, 2012 @ 13:25
    Sean Dooley
    0

    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?

  • Grant Thomas 291 posts 324 karma points
    Apr 13, 2012 @ 14:04
    Grant Thomas
    0

    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.

  • Sean Dooley 289 posts 528 karma points
    Apr 13, 2012 @ 16:00
    Sean Dooley
    0

    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 :(

  • Grant Thomas 291 posts 324 karma points
    Apr 13, 2012 @ 16:29
    Grant Thomas
    0

    The solution is to remove the apostrophe from the node name.

  • Sean Dooley 289 posts 528 karma points
    Apr 16, 2012 @ 10:17
    Sean Dooley
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft