Not sure if this is a bug report or a feature request yet.
A SEO agency that one of our customers is using is trying to use Domain Redirect to set up some wildcard redirects within Drupal. However the status response for all the redirects is 302, which is not the 'Default redirect status' that we have set in /admin/config/search/redirect/settings.
I can see in DomainRedirectRequestSubscriberTest.php that 302 is the status code that we expect, but would it not make more sense to use the 'Default redirect status' ?
Not being able to use a 301 status with Domain Redirect limits its use for an SEO point of view.
Comments
Comment #2
berdirNo reason, could possibly even hardcode 301, I guess 302 is just the default code and we didn't think about that.
Comment #3
Phil Wolstenholme commentedComment #4
Phil Wolstenholme commentedComment #5
john cook commentedI've created a patch to use default_status_code from redirect.settings configuration settings and updated the test appropriately.
I've also fixed some coding standards errors in the test as I was changing it.
Comment #7
berdirThanks, committed.