# Trouble with \`discourse remap\` remapping \`topic\_links url\`

**URL:** https://meta.discourse.org/t/trouble-with-discourse-remap-remapping-topic-links-url/110052
**Category:** Bug
**Created:** [February 25, 2019, 5:31pm UTC](https://meta.discourse.org/t/trouble-with-discourse-remap-remapping-topic-links-url/110052 "2019-02-25T17:31:20Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 28, 2019, 4:43pm UTC](https://meta.discourse.org/t/trouble-with-discourse-remap-remapping-topic-links-url/110052/7 "2019-02-28T16:43:50Z")

</div>

Since this is the very first time someone hits this, I would go with a simple approach of fixing the few affected rows.

Something like:

```SQL
UPDATE topic_links
SET url = substring(url FOR 450)
WHERE length(url) > 450;

```

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-discourse-remap-remapping-topic-links-url/110052)._
