# I get a 404 error if slug begins with “id-”

**URL:** <https://forum.djangoproject.com/t/i-get-a-404-error-if-slug-begins-with-id/2272>\
**Category:** Using Django\
**Created:** [May 6, 2020, 6:21am UTC](https://forum.djangoproject.com/t/i-get-a-404-error-if-slug-begins-with-id/2272 "2020-05-06T06:21:43Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [May 6, 2020, 1:24pm UTC](https://forum.djangoproject.com/t/i-get-a-404-error-if-slug-begins-with-id/2272/7 "2020-05-06T13:24:31Z")

</div>

I think there’s an issue here, but I’m not exactly sure what…

Clean project, enable `LocaleMiddleware`:

```auto
from django.conf.urls.i18n import i18n_patterns
from django.urls import path
from django.http import HttpResponse

def hello(request):
    return HttpResponse("hello")

urlpatterns = i18n_patterns(
    path("", hello),
    prefix_default_language=True,
)

```

`/en/` 200.  
`/en-gb/` 200  
`/en-us/` 404

```auto
Using the URLconf defined in ticket_31540.urls, Django tried these URL patterns, in this order:
    en/
The current path, en-us/, didn't match any of these.

```

So this is because [`en-us` isn’t a configured language](https://github.com/django/django/blob/master/django/conf/global_settings.py#L51) but when determining the language we fellback to `en` correctly I guess, but then we didn’t resolve the URL using the same, or redirect to the fallback language URL.

It seems like that’s something we should do, or… ?

[https://code.djangoproject.com/ticket/31540](https://code.djangoproject.com/ticket/31540)

---

_[View the full topic](https://forum.djangoproject.com/t/i-get-a-404-error-if-slug-begins-with-id/2272)._
