Copied to clipboard

Flag this post as spam?

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


  • Giu 23 posts 141 karma points
    May 21, 2023 @ 08:18
    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 6175 posts 24186 karma points MVP 8x admin c-trib
    May 22, 2023 @ 15:53
    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