diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-17 20:23:01 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-17 20:23:01 -0800 |
commit | 3497282bbb6db33aac9fd43d2a22177c6ac24978 (patch) | |
tree | bc1857e4101816182ae39e3b0fbabae5e74bd19c /python/fatcat_web | |
parent | 56a7306f1cebf5833238bc4d894261a050c8e3c9 (diff) | |
download | fatcat-3497282bbb6db33aac9fd43d2a22177c6ac24978.tar.gz fatcat-3497282bbb6db33aac9fd43d2a22177c6ac24978.zip |
web: fix API URL link for review pages of entities
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index 9ebff060..39eb8a80 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -37,8 +37,8 @@ {% endif %} <br>API URL: <a href=" {{ config.FATCAT_PUBLIC_API_HOST -}} - {%- if editgroup and entity.ident -%} - /editgroup/{{ editgroup.editgroup_id }}{# /{{ entity_type }}/{{ entity.ident }} #} + {%- if editgroup and entity.ident and entity.revision -%} + /{{ entity_type }}/rev/{{ entity.revision }} {%- elif entity.ident -%} /{{ entity_type }}/{{ entity.ident }} {%- elif entity.revision -%} |