# Error on attempting to remap links

**URL:** https://meta.discourse.org/t/error-on-attempting-to-remap-links/278443
**Category:** Bug
**Created:** [September 10, 2023, 3:39am UTC](https://meta.discourse.org/t/error-on-attempting-to-remap-links/278443 "2023-09-10T03:39:08Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [September 11, 2023, 4:21am UTC](https://meta.discourse.org/t/error-on-attempting-to-remap-links/278443/4 "2023-09-11T04:21:09Z")

</div>

Would this work / be wise in the meantime? It is causing some pain.

> [@Rebake fails when changing the subdomain name only](https://meta.discourse.org/t/rebake-fails-when-changing-the-subdomain-name-only/128104/5):
>
> 1. This time links are partial so I used a replace query:
> 
> ```plaintext
> DB.exec "update topic_links set url=REPLACE(url, 'discourse.coretabs.net', 'discourse-old.coretabs.net')"
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/error-on-attempting-to-remap-links/278443)._
