Copied to clipboard

Flag this post as spam?

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


  • Zoki 27 posts 103 karma points
    Jun 20, 2016 @ 09:35
    Zoki
    1

    Umbraco keeps adding slashes to URL end

    Hello guys,

    I'm having really weird problem with v7.4.3, both on localhost and on server, umbraco is randomly adding forward slashes (/) to URL, usually it stops at 2, but it can add more.

    I'm displying quite a lot of links on a page, iterating through nodes and displaying link with node.Url.

    If I publish a node in question it will be fixed for a short while.

    On top of that, I've set <addTrailingSlash>false</addTrailingSlash>, which initially removed all end-slashes, but even then they appeared.

    In my URL rewrite config I have only this (forcing www):

    <add name="forcewww" virtualUrl="http\://(?!www\.)" redirectMode="Permanent" destinationUrl="http://www." ignoreCase="true" redirect="Domain" />
    

    Anyone got an idea?

  • skiltz 501 posts 701 karma points
    Jun 22, 2016 @ 03:08
    skiltz
    0

    In your web.config make sure you have this setting set to false.

    <add key="umbracoUseDirectoryUrls" value="false"/>
    
  • 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