i18n icon indicating copy to clipboard operation
i18n copied to clipboard

Allow domain wildcards

Open MickL opened this issue 1 year ago • 0 comments

Describe the feature

Right now the domain feature is a bit unhandy:

  • If I put my-domain.de it does not match www.my-domain.de
  • If I put my-domain.de it does not match dev.my-domain.de
  • I cant put in multiple domains, e.g. ['my-domain.de', 'www.my-domain.de']

So it would be great one could just put it my-domain.de or *.my-domain.de and it matches my-domain.de, www.my-domain.de and dev.my-domain.de and when using useSwitchLocalePath() it also returns the correct domain that the user is on.

Right now it feels like this value is just hardcoded. I put www.my-domain.de but it does not work on dev.my-domain.de and useSwitchLocalePath() displays the wrong url as well.

Additional information

  • [ ] Would you be willing to help implement this feature?
  • [ ] Could this feature be implemented as a module?

Final checks

MickL avatar Jan 05 '24 22:01 MickL