# Slugs that start with numbers parsed as IDs

**URL:** https://meta.discourse.org/t/slugs-that-start-with-numbers-parsed-as-ids/50258
**Category:** Feature
**Created:** [16 Settembre 2016, 10:06pm UTC](https://meta.discourse.org/t/slugs-that-start-with-numbers-parsed-as-ids/50258 "2016-09-16T22:06:49Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [19 Settembre 2016, 5:32pm UTC](https://meta.discourse.org/t/slugs-that-start-with-numbers-parsed-as-ids/50258/3 "2016-09-19T17:32:30Z")

</div>

That was trickier than I expected it to be, since it only fails when the topic whose id matches the same number exists. Here’s a fix:

[https://github.com/discourse/discourse/commit/2766b2edc3fc68803d254d9039ca044e25a56d2e](https://github.com/discourse/discourse/commit/2766b2edc3fc68803d254d9039ca044e25a56d2e)

---

_[View the full topic](https://meta.discourse.org/t/slugs-that-start-with-numbers-parsed-as-ids/50258)._
