Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Because html5Mode is enabled, the links the social buttons point to w…
Browse files Browse the repository at this point in the history
…ill not work, the request to /api/auth/{provider} will be captured by ui-router and directed back to /. Adding target="_self" to each link will fix this issue. Maybe creating a new directive for links to hit server side endpoints would be more appropriate but this should do for now.
  • Loading branch information
Matt Raby committed Nov 24, 2014
1 parent c94c870 commit 87217da
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<section class="row">
<h3 class="col-md-12 text-center">Sign in using your social accounts</h3>
<div class="col-md-12 text-center">
<a href="/api/auth/facebook" class="undecorated-link">
<a href="/api/auth/facebook" target="_self" class="undecorated-link">
<img src="/modules/users/img/buttons/facebook.png">
</a>
<a href="/api/auth/twitter" class="undecorated-link">
<a href="/api/auth/twitter" target="_self" class="undecorated-link">
<img src="/modules/users/img/buttons/twitter.png">
</a>
<a href="/api/auth/google" class="undecorated-link">
<a href="/api/auth/google" target="_self" class="undecorated-link">
<img src="/modules/users/img/buttons/google.png">
</a>
<a href="/api/auth/linkedin" class="undecorated-link">
<a href="/api/auth/linkedin" target="_self" class="undecorated-link">
<img src="/modules/users/img/buttons/linkedin.png">
</a>
<a href="/api/auth/github" class="undecorated-link">
<a href="/api/auth/github" target="_self" class="undecorated-link">
<img src="/modules/users/img/buttons/github.png">
</a>
</div>
Expand Down

0 comments on commit 87217da

Please sign in to comment.