Copied to clipboard

Flag this post as spam?

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


  • Bradley Kronson 62 posts 113 karma points
    Apr 19, 2023 @ 07:23
    Bradley Kronson
    0

    SEOChecker redirects preventing content editing

    Hey, I'm seeing an interesting one

    If we add a redirect for an existing piece of content, we can no longer edit the content in CMS. It seems the redirect fires when when the Umbraco GetByID is called and tries to fetch the redirect page instead of getting the JSON for the content

    Just some context. We use the CMS content to build a list of items to show, but go to off-site landing pages when they are clicked. We use the redirect mechanism to do this.

    Any ideas?

    Version is 2.11.1

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Apr 19, 2023 @ 07:25
    Richard Soeteman
    0

    Hi,

    Umbraco url's are ignored in redirect manager, Did you setup your own rules?

    Best,

    Richard

  • Bradley Kronson 62 posts 113 karma points
    Apr 19, 2023 @ 07:50
    Bradley Kronson
    0

    Yup, they are manual rules eg

    enter image description here

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Apr 19, 2023 @ 07:55
    Richard Soeteman
    0

    Hi,

    I mean in code or configuration of the site? All /Umbraco routes are ignored by the package. Therefore the redirect must come from something else.

    Best,

    Richard

  • Bradley Kronson 62 posts 113 karma points
    Apr 19, 2023 @ 09:29
    Bradley Kronson
    0

    The redirect is configured in the Redirect Manager in SEOChecker

  • CraigFerguson 8 posts 98 karma points
    Feb 28, 2024 @ 17:17
    CraigFerguson
    0

    Hi,

    I know this is a year old ticket but we are seeing this same problem in SEOChecker 2.11.2. Adding a redirect with the same url as existing page is resulting in that page 404ing on the back office. 404 in back office We can see in the console that it tries to do :

    https://adminDomain.com/umbraco/backoffice/UmbracoApi/Content/GetById?id=6039 which returns a "301 Moved Permanently" status code. enter image description here I can then see that the next request is for the page that this was setup to redirect to: https://adminDomain.com/targetOfRedirect/ enter image description here

    I think part of the problem is that we use a different domain for editing content (which is locked down to specific ip addresses) than we use for the front end of the site. I can see that a request is made to our admin domain with the url to the page which will not resolve as the cultures and hostnames only exist for the live domain. e.g.

    SEO checker is requesting : https://adminDomain.com/en-gb/sourceOfRedirect/ but this can only be accessed on https://liveDomain.com/en-gb/sourceOfRedirect/

    I can then see that the error that is displayed in the devTools console is : Possibly unhandled rejection: {"errorMsg":"Failed to retrieve data for content id 6039","data":"source code from 404 page"}

    and the data is the source code of our 404 page. Could this be due to SEO checker trying to scrape the SEO tags from the page and getting a 404 / redirect and failing?

    Removing the redirect from the SEO checker redirect manager instantly makes the page work normally again.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Feb 29, 2024 @ 08:06
    Richard Soeteman
    0

    Hi disable Redirect when node exists in SEOChecker settings then it will not redirect.

  • CraigFerguson 8 posts 98 karma points
    Feb 29, 2024 @ 13:25
    CraigFerguson
    0

    Hi Richard,

    This will solve the problem with the 404 error when loading admin pages. It will also disable some of the core functionality and prevent our redirects from working on existing pages! Can you suggest a solution that will allow us to use this functionality while still having access to the corresponding admin items?

Please Sign in or register to post replies

Write your reply to:

Draft