Copied to clipboard

Flag this post as spam?

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


  • Karthik Vasan 8 posts 88 karma points
    Oct 31, 2018 @ 14:39
    Karthik Vasan
    0

    Custom Url for the page

    Hi guys,

    i have created content tree like this

    • Home
      • Products
        • Product1

    the auto generated Url for Product1 content is www.sitename.com/products/product1/ but i need the url for product1 should be www.sitename.com/product1/. I have created the page property with umbracoUrlName and added custom Url /product1/. now I tried to access the page www.sitename.com/product1/ but its redirecting to www.sitename.com/products/product1/. I need the product1 in www.sitename.com/product1/ not in www.sitename.com/products/product1/. Please, is there any solution for this?


    thanks

    karthik

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Oct 31, 2018 @ 14:49
    Michaël Vanbrabandt
    101

    Hi Vasan,

    have a look at the following blog:

    https://www.ucodebase.be/blog/implementing-a-custom-urlprovider-in-umbraco-and-its-pitfalls/

    Here you can see the same situation where Companies and Categories segments needs to be removed from the url.

    Hope this helps.

    /Michaël

  • Karthik Vasan 8 posts 88 karma points
    Oct 31, 2018 @ 15:02
    Karthik Vasan
    0

    Michael,

    Thanks for the tutorial... this will solve the issue... i keep posting if any issues... thanks again...


    karthik

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Oct 31, 2018 @ 15:06
    Michaël Vanbrabandt
    0

    Vasan,

    no problem, glad it helps you out with your issue.

    If you have any questions about the UrlProviders or ContentFinders don't hesitate to ask them!

    Have a nice day!

    /Michaël

Please Sign in or register to post replies

Write your reply to:

Draft