mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix e2e runner's navigateTo when url contains # fragment
This commit is contained in:
parent
3d388498e5
commit
ce0fbc6a77
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ angular.scenario.Application.prototype.getWindow_ = function() {
|
|||
angular.scenario.Application.prototype.checkUrlStatus_ = function(url, callback) {
|
||||
var self = this;
|
||||
_jQuery.ajax({
|
||||
url: url,
|
||||
url: url.replace(/#.*/, ''), //IE encodes and sends the url fragment, so we must strip it
|
||||
type: 'HEAD',
|
||||
complete: function(request) {
|
||||
if (request.status < 200 || request.status >= 300) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue