Copied to clipboard

Flag this post as spam?

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


  • Eric 2 posts 72 karma points
    Jul 29, 2019 @ 22:58
    Eric
    0

    Modifying URLs

    when a user clicks/enters the friendly url for certain pages, I need a way to populate the address bar with the default url for the page. this will only apply to specific doc types.

    thanks!

  • Marcio Goularte 388 posts 1360 karma points
    Jul 31, 2019 @ 11:52
    Marcio Goularte
    0

    You need to add a textbox property with alias umbracoUrlName. This property you edit the url in the format you want.

    https://our.umbraco.com/Documentation/Reference/Routing/routing-properties#umbracourlname

    Documentation: This property when created as a text string lets you provide a different URL name to what is created by default by the name of the node. If you enter a value for this property and save/publish the content node you will see that its main URL is updated with a new path suffix.

  • Eric 2 posts 72 karma points
    Jul 31, 2019 @ 18:21
    Eric
    0

    That's not quite what I'm looking for.

    Say a user enters one of the comma separated values in umbracoUrlAlias. Instead of displaying the 'mask' in the address bar, I would like to show the real url (assigned by umbraco)

    example:
    user enters -> mysite.com/rose
    renders -> mysite.com/flowers/thorny/rose

    Hope that helps clarify a bit.

  • Marcio Goularte 388 posts 1360 karma points
    Jul 31, 2019 @ 19:21
    Marcio Goularte
    0

    got it. In that case you will need to customize urlprovider to always return the original url

    https://24days.in/umbraco-cms/2014/urlprovider-and-contentfinder/

Please Sign in or register to post replies

Write your reply to:

Draft