I can reach site by multiple aliases. Business logic requires to do some redirects in case of accessing be an alias. E.g: alias1.dev -> site.dev/landing-page.

I've implemented EventSubscriber for this job. When I'm testing in browser it seems to work fine, but under the hood redirection workflow is:

alias1.dev -> alias1.dev/front-page -> site.dev/landing-page

So I've redirect to page.front in the middle. How to avoid it?

I was debugging a lot but found nothing useful.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.