Fixed url pattern

This commit is contained in:
Sam Splunks 2024-12-06 10:03:57 +00:00
parent af2fac038c
commit f7ca446bc9

View File

@ -251,7 +251,7 @@ if helpdesk_settings.HELPDESK_KB_ENABLED:
path("kb/", kb.index, name="kb_index"), path("kb/", kb.index, name="kb_index"),
re_path(r"^kb/(?P<slug>[A-Za-z0-9_-]+)/$", re_path(r"^kb/(?P<slug>[A-Za-z0-9_-]+)/$",
kb.category, name="kb_category"), kb.category, name="kb_category"),
path("kb/<int:item>/vote/(?P<vote>up|down)/", kb.vote, name="kb_vote"), re_path(r"^kb/(?P<item>\d+)/vote/(?P<vote>up|down)/$", kb.vote, name="kb_vote"),
re_path( re_path(
r"^kb_iframe/(?P<slug>[A-Za-z0-9_-]+)/$", r"^kb_iframe/(?P<slug>[A-Za-z0-9_-]+)/$",
kb.category_iframe, kb.category_iframe,