- Issue created by @xavier.masson
- 🇫🇷France mably
Hi @xavier.masson, looks like an interesting optimization.
Could you provide a merge-request please?
- Merge request !178Issue #3511252 by xavier.masson: Prevent unnecessary redirects in Domain Source submodule when Active domain matches Domain Source → (Merged) created by mably
- Status changed to Needs work
6 days ago 11:15pm 17 August 2025 - 🇫🇷France mably
Hi @xavier.masson, thanks for the MR.
Would you mind explaining why you made two small changes to the original code:
First, the added parameters to the URL generation here:
$url_object = $entity->toUrl('canonical', ['absolute' => TRUE]);
And the headers added to the redirect response:
$redirect = new TrustedRedirectResponse($url, Response::HTTP_FOUND, ['Cache-Control' => 'no-cache, must-revalidate']);
And we'll be ready for merge.
Thanks!