mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
URSH: Fix more UndefinedErrors
This commit is contained in:
parent
2936e44e6c
commit
5a66aa4c29
@ -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'])
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user