# PWA behaviour after a domain change

**URL:** https://meta.discourse.org/t/pwa-behaviour-after-a-domain-change/274197
**Category:** Support
**Tags:** pwa
**Created:** [August 7, 2023, 1:56pm UTC](https://meta.discourse.org/t/pwa-behaviour-after-a-domain-change/274197 "2023-08-07T13:56:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [August 7, 2023, 1:56pm UTC](https://meta.discourse.org/t/pwa-behaviour-after-a-domain-change/274197/1 "2023-08-07T13:56:19Z")

</div>

I switched the domain for our forum and implemented a naive redirector from the old domain to the new domain to keep foreign links working.

Some users installed discourse as PWA.  
Will the discourse PWA recognize the domain change by its own?

If not I would like to learn, how to “support” the PWA to relocate to the new address or at least show a warning to users, that a new installation would be desirable.

This report seems to have implemented this by reloading the application:  
[https://blog.hackages.io/migrating-a-service-worker-from-an-old-domain-to-your-new-domain-69236418051c](https://blog.hackages.io/migrating-a-service-worker-from-an-old-domain-to-your-new-domain-69236418051c)
