API map: corrige liens vers routes -query

This commit is contained in:
Emmanuel Viennet 2024-07-17 10:09:45 +02:00
parent 41758b8c64
commit 650afd5c03

View File

@ -133,7 +133,7 @@ class Token:
)
# Préparation du lien vers la doc de la route
href = "#" + self.func_name.replace("_", "-")
if self.query:
if self.query and not href.endswith("-query"):
href += "-query"
question_mark_group = _create_question_mark_group(current_end_coords, href)