Skip to content

Commit cea4c05

Browse files
committed
Merge pull request #44 from FullstackAcademy/refresh
Add refresh for provider routes
2 parents b97c1c2 + 3e8e948 commit cea4c05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generated/browser/js/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ app.config(function ($urlRouterProvider, $locationProvider) {
66
$locationProvider.html5Mode(true);
77
// If we go to a URL that ui-router doesn't have registered, go to the "/" url.
88
$urlRouterProvider.otherwise('/');
9+
// Trigger page refresh when accessing an OAuth route
10+
$urlRouterProvider.when('/auth/:provider', function () {
11+
window.location.reload();
12+
});
913
});
1014

1115
// This app.run is for controlling access to specific states.

0 commit comments

Comments
 (0)