Skip to content

Commit 96faec1

Browse files
committed
Retained search results on login:
* Changed the two search controls to use get instead of put * Populated the Sign In link's "next" argument with the full URL path - Legacy-Id: 2610
1 parent b759122 commit 96faec1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

rjs/ietf/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<div id="ietf-login" class="noprint">{% if user.is_authenticated %}
6464
{{ user }}
6565
{% else %}
66-
<a href="/accounts/login/?next={{request.path|urlencode}}" rel="nofollow">Sign In</a>
66+
<a href="/accounts/login/?next={{request.get_full_path|urlencode}}" rel="nofollow">Sign In</a>
6767
{% endif %}</div>
6868

6969
<table style="margin-left:8px;margin-top:8px;" width="98%;">

rjs/ietf/templates/base_leftmenu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
<li class="sect">Drafts&nbsp;&amp;&nbsp;RFCs</li>
6565
<li><a href="/doc/">Search</a></li>
66-
<li><form action="/doc/search/" method="post" style="padding-bottom:0;margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name" /><input type="hidden" name="activeDrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
66+
<li><form action="/doc/search/" method="get" style="padding-bottom:0;margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name" /><input type="hidden" name="activeDrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
6767
<li><a href="https://datatracker.ietf.org/idst/upload.cgi">Submit a draft</a></li>
6868

6969

rjs/ietf/templates/idrfc/search_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
{% endcomment %}
3434

35-
<form name="search_form" id="search_form" class="search_form" action="/doc/search/" method="post" {# onsubmit="submitSearch();return false;" #}>
35+
<form name="search_form" id="search_form" class="search_form" action="/doc/search/" method="get" {# onsubmit="submitSearch();return false;" #}>
3636

3737
<div class="search_field">
3838
<label>Name/number/title:</label> {{ form.name }}

0 commit comments

Comments
 (0)