Append slash to articles (redirect)

This commit is contained in:
Gabriel Augendre 2020-12-30 11:34:40 +01:00
parent 4ef93a913b
commit 1b75896e81
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -33,7 +33,6 @@ urlpatterns = [
path("drafts/", html.DraftsListView.as_view(), name="drafts-list"),
path("feed/", feeds.CompleteFeed(), name="complete-feed"),
path("api/render/<int:article_pk>/", api.render_article, name="api-render-article"),
path("<slug:slug>", html.ArticleDetailView.as_view(), name="article-detail-old"),
path("<slug:slug>/", html.ArticleDetailView.as_view(), name="article-detail"),
]