Skip to content

Server-switch gets confused if a domain is a subset of another #1

Description

@diox

Steps to reproduce:

  1. Create a bookmarklet with 2 domains, in this order: www.example.org and stagewww.example.org. The first one needs to be contained in the second one.
  2. Go to second domain (stagewww)
  3. Bookmarklet thinks you are on the first one because it matches. It shows the wrong domain with an incorrect link (it will show a stagewww link, since it thinks you are on the other one, but in addition the href will point to stagestagewww.example.org because of the replacing it does)

It should not happen :-) A workaround is to simply different subdomains when you can (like wwwstage instead of stagewww).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions