next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Changes on URL alias did not revalidate on previous URL

Open Transformative-JY opened this issue 3 years ago • 4 comments

When URL alias of a page is changed on Drupal, it did not trigger revalidate on the previous URL

Example: URL alias change from /something/something-here to /something/something-there, revalidate only trigger on the new URL alias /something/something-there, but not the previous URL /something/something-here

This will cause /something/something-here that should show a 404 page still showing the original content

Transformative-JY avatar Oct 13 '22 02:10 Transformative-JY

We're looking into this. Thank you for reporting.

shadcn avatar Oct 13 '22 05:10 shadcn

Any updates on this issue?

ghost avatar Dec 14 '22 13:12 ghost

Any information about this. We have a similar bug.

Drupal user change a site and a auto redirect will be created from the redirect module. But this will not update the next cache. If I disable the auto generate redirect on alias change in the redirect module and create a redirect manual it will work as intended

taskrider2022 avatar Sep 21 '23 06:09 taskrider2022

Any updates on this? We are experiencing same symptoms - previous url not being purged / revalidated in cache- leading to this situation: /old-url <-- nextjs frontend responds with (stale) cached version /new-url <-- nextjs frontend responds as expected with updated cached version

the expected redirect from /old-url to /new-url is not followed. Only (cumbersome) workaround is to rebuild frontend.

grahamtk avatar Jun 25 '24 12:06 grahamtk