Replies: 1 comment 2 replies
-
This behavior is set intentionally, to make Shlink backwards compatible to when it did not support multiple domains. Its behavior is documented here https://shlink.io/documentation/advanced/multiple-domains/ Working around this is pretty easy. Just set anything as the default domain, but never use it. Instead, always use specific domains. Short URLs created there will work for that domain only. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when a default domain is set, the
DropDefaultDomainFromRequestMiddleware
automatically erases thedomain
field if a link is created with a domain set explicitly if the domain filled equals to the default domain.As a matter of personal preference, I dislike the behavior for various of reasons:
So I went ahead and change the behavior to explicitly fills the default domain into the
domain
field if no domain is specified.I want to know if it is only me who is suffering from this or it is a widespread pain.
Beta Was this translation helpful? Give feedback.
All reactions