diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-03-08 16:26:40 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-03-08 16:26:41 -0800 |
commit | 8e5941f6599bbb7de9d0627797320eba1232c58b (patch) | |
tree | fe77e20985c61e06d2fcf5e7142f2224fbddb5ea /python/fatcat_web/templates | |
parent | 13f8cf1b166b83dbeea8f2be2833398a26fa4865 (diff) | |
download | fatcat-8e5941f6599bbb7de9d0627797320eba1232c58b.tar.gz fatcat-8e5941f6599bbb7de9d0627797320eba1232c58b.zip |
web: remove newline from entity view template macro
Browsers were ignoring this, but some bots were crawling with a "%0A" in
the URL
Diffstat (limited to 'python/fatcat_web/templates')
-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 45f00362..9207bd48 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -48,8 +48,8 @@ /{{ entity_type }}/{{ entity.ident }} {%- elif entity.revision -%} /{{ entity_type }}/rev/{{ entity.revision }} - {% endif %} - {% if expand %}?expand={{ expand}}{% endif %}"> + {%- endif -%} + {%- if expand -%}?expand={{ expand}}{%- endif %}"> JSON </a> </div> |