• This bug has been reported a couple of times. Here is my attempt to describe the issue since the lates update.

    When creating a new permalink URL or updating an existing permalink URL and the permalink has a trailing slash, it will not resolve with the trailing slash.

    If you update the permalink to not have a trailing slash, save, then add the trailing slash back and save it will work.

    Other reports of this people have mentioned the page redirecting to random blog posts. I believe this is just WordPress redirect logic finding the next closest match. This has nothing to do with the Permalink plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @jackmack Can you please capture a video recording of the issue? It would help to reproduce it on my end. Please also share a screenshot of WordPress permalink settings page.

    @sasiddiqui I also came here to make this exact same bug report. Here’s a video demonstrating how it 404’s if you add it with a trailing slash:
    https://www.youtube.com/watch?v=mycbcm8a7Z4

    What I found works:

    • Create post
    • Change URL to desired with out slash
    • Change URL to include slash

    It breaks if you:

    • Create post
    • Change URL to desired with slash
    • 404 occurs
    • Change to URL without slash (works)
    • Go to settings -> permalinks -> save to flush
    • Change URL to include slash (now works)

    Happy to provide more info if needed. This plugin does exactly what we need so thank you, I wish this was built into wordpress core.

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @joezappie I have tried to generate this issue on my testing website with your provided steps but I am unable to replicate it. Do you have time this week or next to hop on a call to help me to generate this issue on my end?

    Hey Sami, I’m currently in the middle of a big site development cycle, but I could do a call with you next week if that works. Would you like me to send you a message on Slack to setup a time?

    Also, do you use Local? I could export an environment with the issue if that would help.

    Hi @sasiddiqui @joezappie @jackmack ,

    My team have been experiencing this issue for a while now. I’ve done some digging and I think it’s related to how the cache is being saved and cleared. For us, the issue is resolved by clearing the object cache (on both WPEngine and Pressable environments) or by re-saving minus the trailing slash.

    It appears that query_post() is called with the permalink having had its trailing slash removed – resulting in a cache_name without a trailing slash. However, when the cache is cleared in clear_post_permalink_cache, the trailing slash is present, leading to a mismatch and a failure to clear the cache. Re-saving the permalink without a slash does find the previous cache, and clear this, thus fixing the problem.

    This is theoretical right now but hopefully useful. @sasiddiqui if you’d like to jump on a call I’d be happy to take you through it.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.