Domain-level links should not be redirects #788
Replies: 1 comment 2 replies
-
Thanks for the feature proposal! I think this is closely related to #444. As there can be multiple domains that serve the same locale, I think the user should supply an explicit domain in this case, also removing any ambiguity. Accepting
If you're interested, absolutely! I think the changes discussed in #444 are quite closely related and might need to be implemented in one go to ensure they fit together. The change might be a bit more involved, but if you're up for the challenge I'd be happy to help where I can! The discussed APIs would require a major version, there's also some work necessary on my end to see if we want to incorporate other changes while we're making a breaking change. |
Beta Was this translation helpful? Give feedback.
-
I was using the
domains
configuration option and it works like a charm. There is one thing I dislike about it tho - the links thatLink
generates lead to the current domain, and then we get redirected to the different domain.(In the following examples, i am on
http://example.com/
)It is quite interesting that
Link
always creates relative links, which then perform redirects:While response headers are perfectly able to generate absolute URLs:
Ideally what I believe
Link
should result in, in this situation, is:I suggest that we fix this in a future release. I'd be interested in making a PR - if this is something that sounds correct to you.
Update: fixed a typo.
Beta Was this translation helpful? Give feedback.
All reactions