From 8e5941f6599bbb7de9d0627797320eba1232c58b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 8 Mar 2021 16:26:40 -0800 Subject: web: remove newline from entity view template macro Browsers were ignoring this, but some bots were crawling with a "%0A" in the URL --- python/fatcat_web/templates/entity_macros.html | 4 ++-- 1 file 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 -- cgit v1.2.3