Copied to clipboard

Flag this post as spam?

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


  • Dale McCutcheon 22 posts 124 karma points
    Feb 20, 2017 @ 16:14
    Dale McCutcheon
    0

    Extra forward slashes onto some urls

    Hi All,

    We are having an issue where some pages on our site have got multiple extra slashes at the end of the url.

    We are simply using the umbraco helper to get the typed content then the children of the homepage node to create our navigation, when debugging the extra slashes are appearing directly after we having referenced the typedcontent children.

    When you look at the nodes in umbraco the urls are fine and do not have the extra slashes.

    Does anyone have any ideas?

    Thanks Dale

  • Greg Fyans 112 posts 271 karma points
    Mar 03, 2017 @ 19:03
    Greg Fyans
    0

    If you have any calls to UmbracoContext.Current.ContentCache.GetByRoute, replace them. Try using the UmbracoHelper instead.

    I had this on one of my projects and after much head scratching, it turned out that was the cause.

    Greg.

Please Sign in or register to post replies

Write your reply to:

Draft