fix(router): update DOI resolution path parameter

Changed the `identifier` parameter in the DOI resolution path to accept the full path format. This fixes issues where complex identifiers containing slashes were not resolving correctly. Ensures proper routing for a broader range of DOIs.
This commit is contained in:
Kumi 2024-06-25 14:12:50 +02:00
parent 2a9d093ec6
commit 037baa465b
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -30,7 +30,7 @@ from .views import (
urlpatterns = [
path("", HomeView.as_view(), name="home"),
path("<prefix>.<suffix>/<identifier>/", resolve_doi, name="resolve_doi"),
path("<prefix>.<suffix>/<path:identifier>/", resolve_doi, name="resolve_doi"),
path("prefixes/", PrefixListView.as_view(), name="prefix_list"),
path("prefixes/<int:pk>/", PrefixDetailView.as_view(), name="prefix_detail"),
path("prefixes/create/", PrefixCreateView.as_view(), name="prefix_create"),