Add option to domain source to stop redirection from aliases#483
Add option to domain source to stop redirection from aliases#483gheydon wants to merge 1 commit intoagentrickard:8.x-1.xfrom
Conversation
|
I do not understand the problem as currently explained. Can you please provide more detail. |
|
Basically if you have a situation when you have a domain and aliases of that domain, Domain source will redirect to the domain to primary domain even if you are on the alias of the domain. eg. I have a primary domain This is usually not a problem except for the unnecessary redirects but when using GraphQL some queries do not work unless you are on the base url for the domain. Which means you can't do things like use So adding in this additional config option on the Domain source means that you can reduce your redirects and in the case of GraphQL use an |
|
I see. These aren't redirects, per se, (unless the alias is set to redirect to it's parent) but the link HREF is being rewritten. I wonder if instead of this patch, we should set Domain Source to be alias-aware. It certainly should be, and I would expect that the 'environment' handling would account for that. To make that work, the current logic in this PR is close, but not quite right, I think. Is the essential request here "Allow API calls to ignore Domain Source?" Even if we fix that, I don't think you can use |
The current default behaviour of Domain source is to direct to the primary domain even if you are on an alias of the current domain that needs to be redirected to.
This caused me huge problems with GraphQL doing a route lookup query
So in the example of using a primary domain of
foo.comand the a graphql domain ofapi.foo.comand the Domain source it will try to redirect.