redicrect to resource after login
{% else %}
<strong>This is a link to a private HydroShare resource.
To access it you need a HydroShare account and permission from its owner.
- <span id="signin-menu"><a href="{% url 'login' %}"><span class="glyphicon glyphicon-log-in"></span> Log in</a></span> or
{% with request.path|res_uuid_from_res_path as next %}
- <span id="signup-menu"><a href="/sign-up/?next={{ next }}"><span class="glyphicon glyphicon-user"></span> create account</a></span>.
+ <span id="signin-menu"><a href="{% url 'login' %}?next=/resource/{{ next }}"><span class="glyphicon glyphicon-log-in"></span> Log in</a></span> or
{% endwith %}
+ <span id="signup-menu"><a href="/sign-up/"><span class="glyphicon glyphicon-user"></span> create an account</a></span>.
</strong>
{% endif %}
{% if owners %}
