Copied to clipboard

Flag this post as spam?

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


  • pbl_dk 150 posts 551 karma points
    Mar 16, 2016 @ 00:45
    pbl_dk
    0

    Get URL by pageid instead of pagename

    Hi there

    In old umbraco it was possible to find a page by calling the pageid like mysite.dk/1200 Now I cant get that function to work in 7.2

    I would like an URL like this mysite.dk/articles/1200 instead of mysite.dk/articles/newarticlesaboutcats

    Would that be possible? any hints/help would be much appreciated.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Mar 16, 2016 @ 07:11
    Dave Woestenborghs
    101

    Hi Elitenet,

    I think this functionality was disabled in one of the newer versions of Umbraco.

    You can create a UrlSegmentProvider that will use the id instead of the page name as part of the url.

    See the docs : https://our.umbraco.org/documentation/Reference/Routing/Request-Pipeline/outbound-pipeline

    Dave

  • pbl_dk 150 posts 551 karma points
    Mar 16, 2016 @ 08:29
    pbl_dk
    0

    Hi Dave. All right, looks good for many things. Thanks for the help! :-)

    /Bille

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies