Skip to content

Why does Shlink ignore the domain parameter if it's the DEFAULT_DOMAIN? #2367

Answered by acelaya
nepomuc asked this question in Help wanted
Discussion options

You must be logged in to vote

This is mainly due to backwards compatibility and historical reasons.

In the beginning, Shlink did not support multiple domains explicitly, but you could of course have a single Shlink instance and point multiple domains at it, which means every existing short URL would work for all those domains.

In order to avoid breaking existing instances, Shlink introduced support for multiple domains in a way that the default domain would be identified by the lack of a explicitly set domain.

There have been some previous discussions about this behavior: #1535

I even considered changing this behavior (I would probably not implement it like this today) #1536, but the issue did not have any attention. …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by acelaya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants