From 58ef32308f45141c8f7f7cc32a6156cd328ba692 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 13 Jun 2012 15:37:52 -0700 Subject: fix($location): fix URL interception in hash-bang mode Closes #1051 --- src/ng/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/http.js') diff --git a/src/ng/http.js b/src/ng/http.js index b0f8de62..dd949a6c 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -52,7 +52,7 @@ function isSameDomain(requestUrl, locationUrl) { relativeProtocol: match[2] === undefined || match[2] === '' }; - match = URL_MATCH.exec(locationUrl); + match = SERVER_MATCH.exec(locationUrl); var domain2 = { protocol: match[1], host: match[3], -- cgit v1.2.3