Skip to content

Commit

Permalink
fix help redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoc committed Dec 20, 2022
1 parent 0a5426d commit 1d436c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions help/help_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def index():
# Redirect form searches to /help/<search>
if request.args.get('search'):
return redirect(
url_for('help_page.single', topic=request.args.get('search'))
url_for('help.help_page.single', topic=request.args.get('search'))
)

return render_template(
Expand Down Expand Up @@ -52,7 +52,7 @@ def single(topic=None):
if len(search_topics) == 1:
found_topic = next(iter(search_topics.values()))
return redirect(
url_for('help_page.single', topic=found_topic['name'])
url_for('help.help_page.single', topic=found_topic['name'])
)

# Respond with a 200 showing any results,
Expand Down

0 comments on commit 1d436c2

Please sign in to comment.