зеркало из https://github.com/mozilla/kitsune.git
Merge pull request #5337 from smithellis/leading-slash-inproduct
Remove leading / from inproduct urls
This commit is contained in:
Коммит
5b4a634074
|
@ -4,7 +4,7 @@ from kitsune.inproduct import views
|
|||
|
||||
urlpatterns = [
|
||||
re_path(
|
||||
r"/(?P<product>[^/]+)/(?P<version>[^/]+)/(?P<platform>[^/]+)/"
|
||||
r"(?P<product>[^/]+)/(?P<version>[^/]+)/(?P<platform>[^/]+)/"
|
||||
r"(?P<locale>[^/]+)(?:/(?P<topic>[^/]+))?/?",
|
||||
views.redirect,
|
||||
name="inproduct.redirect",
|
||||
|
|
|
@ -28,7 +28,7 @@ urlpatterns = [
|
|||
re_path(r"^gallery/", include("kitsune.gallery.urls")),
|
||||
re_path(r"^chat", RedirectView.as_view(url="questions/new")),
|
||||
re_path(r"^messages/", include("kitsune.messages.urls")),
|
||||
re_path(r"^1", include("kitsune.inproduct.urls")),
|
||||
re_path(r"^1/", include("kitsune.inproduct.urls")),
|
||||
re_path(r"^postcrash", include("kitsune.postcrash.urls")),
|
||||
re_path(r"^groups/", include("kitsune.groups.urls")),
|
||||
re_path(r"^kpi/", include("kitsune.kpi.urls")),
|
||||
|
|
Загрузка…
Ссылка в новой задаче