Replies: 0 comments 3 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. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Currently, when a default domain is set, the
DropDefaultDomainFromRequestMiddlewareautomatically erases thedomainfield 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
domainfield 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.
All reactions