Redirect issue with the URL alias in D8/D9

 Sometimes the redirect from a node to the destination might not work.

It might not work because of the URL alias of the source node.

The solution is to delete the URL alias of the source node. Then the redirect will work.

https://www.drupal.org/project/redirect/issues/2821158


Example:

node/11 exists without URL alias.

Create a redirect from /hello to sitey.com => redirect works

Add a URL alias to node/11 as /hello

Now check the redirect from /hello to sitey.com => Don't work

Delete the URL alias of the node/11 => now the redirect works.


Comments

Popular posts from this blog

Programatically create layout builder section in Drupal

Code quality analysis of Drupal. Can I use Sonar?

Set up Drupal7 to Drupal8 migration in simple steps (using Drush)