!# code (Hash Bang Code)
is
4 supporters

New! Drupal 9: The Correct Way To Redirect A Page

May 23, 2022

I was recently working with a Drupal 9 site and found some strange behaviour when saving certain types of content. The page would appear to save, but much of the content appeared to be missing. It had even failed to generate the paths for the page based on the path auto rules.

Digging deeper I found the root cause of the problem was an improperly created redirect in an insert hook within custom code written on the site. This code looked for the creation of a particular content type and then forced the redirect to happen.

Read more here: https://www.hashbangcode.com/article/drupal-9-correct-way-redirect-page

Enjoy this post?
Buy !# code (Hash Bang Code) a coffee
Sign up or Log in to leave a comment.