I want to change url on button click, what I do now:
$scope.onClick = function(url) {
document.location=url;
$scope.isPopOverOpen = false;
}
when url=workspace/#/
the page URL becomes: localhost:8080/workspace/#/dashboard
.
problem is that in IE 9 the page url becomes: localhost:8080/workspace/workspace/#/dashboard
so I get page not found error.
Maybe someone knows why and solution for this?
I use angular, so maybe it can give right functionality.
use $location.path("/folder/" + url); just include the service
angular.module('app')
.controller('myApp',[$location, function(...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.