Viewing 15 replies - 1 through 15 (of 17 total)
  • Thank you, this is indeed a new issue. Thanks for setting it up as a new ticket.

    Plugin Author Aaron

    (@aaron13100)

    So I’m having trouble reproducing this. Unless there is an issue, the following has to happen for the URL to be updated.

    1) A custom 404 page must be specified in the options for the “Redirect all unhandled 404s to” option.

    2) The option has to be turned on on the options page (“Update the URL bar” under the “404 Page Suggestions” section at the bottom), and

    3) The URL that the user is being redirected to has to have the same ending as the custom 404 page. e.g. if being redirected to /about and the custom 404 page is /custom-404 then there is no match so the URL shouldn’t update. I can’t imagine a situation where the custom 404 page would have the same ending as the valid page a user is being redirected to.

    So #3 is as far as I got trying to reproduce this. I understand that there may be some regex redirects in place that I’m not familiar with though. Let me know if there’s more information for me I guess. ? so I can figure this out.

    Plugin Author Aaron

    (@aaron13100)

    I guess let me know more about your setup. Do you have a custom 404 page specified for the “Redirect all unhandled 404s to” option?

    What’s the URL of the custom 404 page?

    Yes, you helped me with the initial redirection syntax:

    1) /collection/(.+?)/ –> https://in.sinkadus.com/ateljeer/kungsholmen/konstnarer/$1/
    2) ateljeer/kungsholmen/konstnarer/(.+?) -> https://in.sinkadus.com/ateljeer/lilla-essingen/konstnarer/$1/
    3) ateljeer/lilla-essingen/konstnarer/(.+?)/ -> https://in.sinkadus.com/ateljeer/vasterbroplan/konstnarer/$1/

    So maybe there are too many ridirects here… messing things up?

    Plugin Author Aaron

    (@aaron13100)

    I created the 3 redirects and a test page and I changed the permalinks to use a custom structure of “/%category%/%postname%/” so that the page would exist at the last location and I am seeing an issue but I’m not sure if it’s the same as what’s happening for you.

    If the page I’m redirected to exists then I don’t see an issue – the URL is not changed. If the page I’ve requested does not exist and I’m eventually redirected to the custom 404 page then I see the issue that the URL is changed to a URL that I didn’t request – it’s part of one of the redirect URLs.

    Is this what you’re seeing or is it different?

    I’m not sure when I’ll be able to get to this. I have a lot going on this week.

    Hm, I will try to clarify.

    All artist exists as a portfolio category, like this: https://in.sinkadus.com/collection/name-of-artist

    For some of these, I have created pages where the portfolio slug points to, but for the majority – they have their pages here:

    https://in.sinkadus.com/ateljeer/lilla-essingen/konstnarer/name-of-artist
    https://in.sinkadus.com/ateljeer/kungsholmen/konstnarer/name-of-artist
    https://in.sinkadus.com/ateljeer/vasterbroplan/konstnarer/name-of-artist

    This mean that I need to redirect all artists from the portfolio-category slug, to their actual page. And the redirect-solution I got from you, let me do that in an automatic way.

    So thats the background. Now, I don’t know how/why these redirect rules suddenly (or maybe I missed this before) changes the correct page URL to the portfolio category, for any artist that actually gets looped through the redirect process.

    Also – there is not actual hurry with this. Im just very impressed and thankful that you actually take your time to care. If you are interested to get to the bottom of this, let me know if you need admin credentials for the site in question.

    Plugin Author Aaron

    (@aaron13100)

    Hey. Please try version 2.27.6 and let me know if the issue is still there.

    thanks

    Updated, but problem still there. And seems to be worse…. se screen grab for clarification (text on screen grab also below).

    https://share.getcloudapp.com/NQuYlRrr

    Updated to new version. Then emtpied all cache. Then went to in.sinkadus.com/collection – and opened the artists toggle (“Konstn?rer”)

    Then clicked on artist tag/link “?sa Liljeholm”

    This led to same behaviour as before: the redirection loop ended up on the
    empty portfolio page.

    Now too the weird part: now ALL artists links in the right sidebar leads to this URL, even though the preview clearly displays the correct one.

    Plugin Author Aaron

    (@aaron13100)

    On the 404 Solution options page what is your “Redirect all unhandled 404s to” setting set to?

    Also please uncheck the “Update the URL bar” option at the bottom of the settings page under the “404 Page Suggestions” section, Save Settings, and try again.

    thanks

    I unchecked as you said, the redirect unhandled 404s was checked as:

    Create automatic redirects:
    Automatically creates redirects based on best possible suggested page.

    I also unchecked this.

    Now it works like it should!

    Was the problem just these to checked options, or did you find something you fixed in the update?

    Plugin Author Aaron

    (@aaron13100)

    I didn’t fix what you’ve described in the update and I still don’t understand what happened.

    I asked about the option “Redirect all unhandled 404s to” in your settings. What is that set to?

    Plugin Author Aaron

    (@aaron13100)

    Anyway if you want to try to figure out what the issue was we can continue to work on it. Otherwise if you leave the ““Update the URL bar” option off then it won’t happen.

    Anser to your question since I misunderstood:

    (Default 404 Page)

    I gladly investigate further, if this would be useful to you.

    Plugin Author Aaron

    (@aaron13100)

    Actually I’m grateful for your help. Most people just find an issue and then uninstall the plugin without telling me, so I don’t have a chance to fix it.

    It would be great if you could update to version 2.27.7 and try again. If it doesn’t fix the issue then I’ve added in some more debug logging to that version. So if it doesn’t fix it please turn on debug logging and test again by doing the following.

    1) Put the settings back the way they were with the issue (“Update the URL bar” checked).
    2) On the Options page at the bottom of “Advanced Settings (Etc)” just above “404 Page Suggestions” check the box next to “Debug logging” … (checked)
    3) “Save Settings” at the bottom of the page.
    4) Test again with https://in.sinkadus.com/collection/carl-bernalt (for example)
    5) View the debug file. (the link is under the “Debug logging” checkbox.
    6) Copy the last 2 pages or so to the clipboard and paste it at pastebin.com, then click “Create new paste” at the bottom.
    7) Send me the link it created here (do not paste the contents of the log file here).

    thanks

    Hi, no problem, very glad to be able to help out.

    I updated, then reverted back to as it was before, with both these ticked:

    Create automatic redirects: (checked)
    Update the URL bar: (checked)

    And, it works! So whatever you did, it at least solved my issues with the redirect loop.

    So, thats it? Or do you need anything else?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Incorrect URL after redirect’ is closed to new replies.