s/jump/q/

This commit is contained in:
Flancian 2021-01-02 17:52:13 +01:00
parent fdef705efe
commit 65d8e6f776
2 changed files with 4 additions and 4 deletions

View file

@ -106,9 +106,9 @@ def pull(node):
@bp.route('/jump')
def jump():
"""Redirects to the right node."""
jump = request.args.get('jump')
return redirect(url_for('.node', node=slugify(jump)))
"""Redirects to a context; in "jump" mode, a node *always* exists (nodes map one to one to all possible queries)."""
q = request.args.get('q')
return redirect(url_for('.node', node=slugify(q)))
# Entities
@bp.route('/wikilink/<node>')

View file

@ -44,7 +44,7 @@
<a href="/"><img src="/static/img/agora.png" class="logo" style="vertical-align: top" width="19" height="19"></a>
| <a href="/nodes">nodes</a>
| <a href="/users">@</a>
| <form action="/jump" method="get" style="display: inline;">jump: <input type="text" name="jump"></form>
| <form action="/jump" method="get" style="display: inline;">jump: <input type="text" name="q"></form>
| <a href="#" style="text-decoration: none;" class="theme-toggle">🌙</a>
<!-- doesn't fit on mobile right now.
| <a href="/node/agora-help" style="text-decoration: none;" class="help-button"></a>