diff options
author | Vitaly Takmazov | 2022-12-08 07:27:35 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-08 07:27:35 +0300 |
commit | e3c4cd8414ee75f17305a29b4ec091aadcf1832e (patch) | |
tree | 063d72b0041388ee879541861927e340edba541d /src/main/resources/templates | |
parent | 7b8a99a6074228a5680218690b7f1538ce7e8d1d (diff) |
Add return path parameter to other `/login` links
Diffstat (limited to 'src/main/resources/templates')
-rw-r--r-- | src/main/resources/templates/views/partial/message.html | 4 | ||||
-rw-r--r-- | src/main/resources/templates/views/thread.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/resources/templates/views/partial/message.html b/src/main/resources/templates/views/partial/message.html index a41a3064..9a33c432 100644 --- a/src/main/resources/templates/views/partial/message.html +++ b/src/main/resources/templates/views/partial/message.html @@ -54,7 +54,7 @@ </span> </a> {% else %} - <a href="/login" class="a-login msg-button"> + <a href="/login?retpath={{ retpath | default('/') }}" class="a-login msg-button"> <span class="msg-button-icon"> <i data-icon="ei-heart" data-size="s"></i> {% if msg.recommendations.size() > 0 %} @@ -84,4 +84,4 @@ </a> {% endif %} </nav> -</article>
\ No newline at end of file +</article> diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html index 6215aa9a..7aecaea4 100644 --- a/src/main/resources/templates/views/thread.html +++ b/src/main/resources/templates/views/thread.html @@ -61,7 +61,7 @@ </span> </a> {% else %} - <a href="/login" class="a-login msg-button"> + <a href="/login?retpath={{ retpath | default('/') }}" class="a-login msg-button"> <span class="msg-button-icon"> <i data-icon="ei-heart" data-size="s"></i> {% if msg.recommendations.size() > 0 %} {{ msg.recommendations.size() }} @@ -185,4 +185,4 @@ {% endblock %} {% block "column" %} {% include "views/partial/usercolumn" %} -{% endblock %}
\ No newline at end of file +{% endblock %} |