URSH: Fix more UndefinedErrors

This commit is contained in:
Adrian Moennich 2021-05-24 18:39:40 +02:00
parent 2936e44e6c
commit 5a66aa4c29
2 changed files with 3 additions and 2 deletions

View File

@ -82,7 +82,8 @@ class RHCustomShortURLPage(RHManageEventBase):
event=self.event,
ursh_host=self.ursh_host,
original_url=original_url,
submitted=False)
submitted=False,
shortcut=None)
def _process_POST(self):
original_url = self._make_absolute_url(request.args['original_url'])

View File

@ -16,7 +16,7 @@
<div id="ursh-shorten-request-form" class="i-has-action">
<input id="ursh-shorten-input" name="ursh-shorten-original-url" type="url" style="font-family:monospace;"
spellcheck="false" autocomplete="off" autocapitalize="off"
value="{{ request.args.url }}"
value="{{ request.args.get('url', '') }}"
placeholder="{% trans %}Enter an Indico URL to shorten...{% endtrans %}">
<button id="ursh-shorten-button" type="button" class="i-button">{% trans %}Shorten{% endtrans %}</button>
</div>