How to change URL names in Umbraco

rtn picture rtn · Jul 30, 2014 · Viewed 14.1k times · Source

This is my first time round using Umbraco and I have created Document Types / Pages using the wrong naming format and now this has transpired into my page URL's, for instance /about-page/. How would I go about changing them to /about as I have searched the back-end admin panel and there dose't seem to be an option to change their link to document values.

Would anyone be able to provide a simple code based example using umbracoUrlAlias or umbracoUrlName how I could change this preferably in Razor.

Thanks

Answer

c0demaster picture c0demaster · May 17, 2015

Editing @run yards Solution by digbyswift help in comment

Correct Solution:

  1. Create Property on in Document Types which applies to all pages you want to change the URL
  2. Call the name anything you want e.g Page URL and Possibly give it a new tab.
  3. Call the alias umbracoUrlName
  4. Type as text sting
  5. Should not be Mandatory (As when you start replacing .Url with .umbracoUrlAlias within the views it will need to be present)
  6. Tab as Generic
  7. Click Save on top right on the page

Added screenshot for starter kit on Umbraco v7.2.5 Adding screenshot for starter kit on Umbraco v7.2.5