Skip to content

Commit

Permalink
Remove hardcoded readthedocs.org URL
Browse files Browse the repository at this point in the history
When using a custom readthedocs server, the search box in the documentation footer link to readthedocs.org website instead of the production domain host.

Using ``settings.PRODUCTION_DOMAIN`` fix the problem.
  • Loading branch information
JLorne committed Aug 7, 2017
1 parent ce2a853 commit 4db1545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/restapi/templates/restapi/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<dt>Search</dt>
<dd>
<div style="padding: 6px;">
<form id="flyout-search-form" class="wy-form" target="_blank" action="https://readthedocs.org{% url 'elastic_project_search' project.slug %}" method="get">
<form id="flyout-search-form" class="wy-form" target="_blank" action="//{{ settings.PRODUCTION_DOMAIN }}{% url 'elastic_project_search' project.slug %}" method="get">
<input type="text" name="q" placeholder="Search docs">
</form>
</div>
Expand Down

0 comments on commit 4db1545

Please sign in to comment.