more reversion to make login?next= work correctly

pull/1/head
eric 2011-12-29 00:11:28 -05:00
parent 49ffafc838
commit 4f17b86878
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@
<li class="first"><a href="/supporter/{{user.username}}"><span id="welcome">Welcome, {{ user.username }}</span></a></li>
<li><a href="{% url auth_logout %}"><span>Sign Out</span></a></li>
{% else %}
<li class="first"><a href="{% url auth_login %}"><span>Sign In</span></a></li>
<li class="first"><a href="{% url auth_login %}?next={% firstof request.path '/' %}"><span>Sign In</span></a></li>
{% endif %}
<li><a href="/stub/tour"><span>Tour</span></a></li>
<li><a href="{{faqurl}}"><span>FAQs</span></a></li>

View File

@ -15,7 +15,7 @@
<br>
<br>
<h3>Or, login with:</h3>
<a href="/socialauth/login/google?next={{request.build_absolute_uri}}{{ next }}"><img src="{{ STATIC_URL }}/images/auth/google_64.png"</a>
<a href="/socialauth/login/google?next=http://{{request.get_host}}{{ next }}"><img src="{{ STATIC_URL }}/images/auth/google_64.png"</a>
</p>
<p>