I am working on project in which we are using Google OAuth API to signup and login users to ower application.
The project is based on angularjs and asp.net.
The login process works fine when html5mode is not enabled, but for SEO reasons we are required to remove the hash (#) from the url using :
$locationProvider.html5Mode(true);
in this case the response received after the authentication is always in the form
http://site/#access_token=...
and for the route configuration in angular we are using
$routeProvider.when('/access_token=:accessToken', {
templateUrl: '/app/identification/identification.html',
controller: 'identificationGoogle'
});
the problem is when html5 mode is enabled, after the redirection is done, the associated controller is never activated even if the browser window url is in the previous form.
it does not work until you refresh the page.
so is there any solution to this problem to avoid the need to reload the page.
the angular version used is : 1.3.15.
#tag from response url because angularhtml5Modedoes not work with#tag url's