Skip to content

Commit

Permalink
documents: fix permalink
Browse files Browse the repository at this point in the history
After the simplification of URLs for organisations, the permalink to document's detail is not working anymore. This commit fixes the permalink to match the new URL.

* Changes configuration for `SONAR_DOCUMENTS_PERMALINK` to make permalink work again.
* Closes #282.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Sep 7, 2020
1 parent 94e549a commit 750f549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonar/modules/documents/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
SONAR_DOCUMENTS_ORGANISATIONS_EXTERNAL_FILES = ['csal']
"""Display external files URL for these organisations."""

SONAR_DOCUMENTS_PERMALINK = '{host}organisation/{org}/documents/{pid}'
SONAR_DOCUMENTS_PERMALINK = '{host}{org}/documents/{pid}'
"""Permalink for accessing documents details."""

0 comments on commit 750f549

Please sign in to comment.