Copied to clipboard

Flag this post as spam?

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


  • Giu 22 posts 140 karma points
    20 days ago
    Giu
    0

    double slash at the end of the url

    I have this website with umbraco v7.15.10 and I am using Articulate v3.0.2 for blog engine.

    On google console search, I noticed that some pages were added to the google index with a double slash at the end like this one:

    https://www.gogetgroomed.co.uk/blog/archive/5-reasons-you-are-having-a-bad-hair-day-everyday//

    What I found out:

    It's only for pages with an Articulate doc type. It's only when IPublishedContent.Url is being called inside a view

    When I go to the page where the faulty url was, the url is now the correct one (with only one slash at the end)

    I was thinking: fine, I will set a rewrite rule to catch all the urls with a double slash at the end using url rewrite 2, but even with a regex it doesn't seem to catch these urls.

    In the config, addTrailingSlash is set to true.

    Any tips ?

  • Alex Skrypnyk 6083 posts 23482 karma points MVP 6x admin c-trib
    19 days ago
    Alex Skrypnyk
    0

    Hi Giu

    The first question would be how URLs with double slash were added to the index. Can you check the XML sitemap and navigation code? Maybe somewhere extra slash was added to URLs?

    Thanks, Alex

Please Sign in or register to post replies

Write your reply to:

Draft