Suddenly, my local dev site's tabs have started linking to the live site. For example, when I view https://mysite.lndo.site and click the edit tab, it points to https://mysite.com/node/166. If I type in https://mysite.lndo.site/node/166, it still redirects me to the live site. This is a recent phenomenon, but I can't work out what change has caused this to start happening. Is there a simple setting I'm missing somewhere?

Drupal 9.4.1 PHP 8.0.18

  • Did you pull the database from the live site recently?
    – Jaypan
    Commented Jun 27, 2022 at 18:45
  • Yes. But I've done that before as well. Commented Jun 27, 2022 at 18:47
  • And also, I just pulled the live db down to my test env (at Pantheon) and it is not having the same issue. Commented Jun 27, 2022 at 19:18
  • 2
    Sounds like you've got a rewrite rule based on an environment variable or some such
    – Clive
    Commented Jun 27, 2022 at 19:40

1 Answer 1


@Clive's comment was on track. I'm using the Domain modules and under Domain Source Settings, it was not set to disable link rewrites for these routes. This site is 2 years old now and I don't recall ever setting these before though, so something must have changed that I haven't caught onto yet. Anyway, leaving this here with what I figured out for posterity's sake.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.