s/jump/q/
This commit is contained in:
parent
fdef705efe
commit
65d8e6f776
2 changed files with 4 additions and 4 deletions
|
@ -106,9 +106,9 @@ def pull(node):
|
||||||
|
|
||||||
@bp.route('/jump')
|
@bp.route('/jump')
|
||||||
def jump():
|
def jump():
|
||||||
"""Redirects to the right node."""
|
"""Redirects to a context; in "jump" mode, a node *always* exists (nodes map one to one to all possible queries)."""
|
||||||
jump = request.args.get('jump')
|
q = request.args.get('q')
|
||||||
return redirect(url_for('.node', node=slugify(jump)))
|
return redirect(url_for('.node', node=slugify(q)))
|
||||||
|
|
||||||
# Entities
|
# Entities
|
||||||
@bp.route('/wikilink/<node>')
|
@bp.route('/wikilink/<node>')
|
||||||
|
|
|
@ -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="/"><img src="/static/img/agora.png" class="logo" style="vertical-align: top" width="19" height="19"></a>
|
||||||
| <a href="/nodes">nodes</a>
|
| <a href="/nodes">nodes</a>
|
||||||
| <a href="/users">@</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>
|
| <a href="#" style="text-decoration: none;" class="theme-toggle">🌙</a>
|
||||||
<!-- doesn't fit on mobile right now.
|
<!-- doesn't fit on mobile right now.
|
||||||
| <a href="/node/agora-help" style="text-decoration: none;" class="help-button">ℹ️</a>
|
| <a href="/node/agora-help" style="text-decoration: none;" class="help-button">ℹ️</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue