We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34b43ea commit c65796dCopy full SHA for c65796d
1 file changed
src/ng/location.js
@@ -320,17 +320,16 @@ LocationHashbangInHtml5Url.prototype =
320
* Change path, search and hash, when called with parameter and return `$location`.
321
*
322
* @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)
323
- * @param {string=} replace The path that will be changed
324
* @return {string} url
325
*/
326
- url: function(url, replace) {
+ url: function(url) {
327
if (isUndefined(url))
328
return this.$$url;
329
330
var match = PATH_MATCH.exec(url);
331
if (match[1]) this.path(decodeURIComponent(match[1]));
332
if (match[2] || match[1]) this.search(match[3] || '');
333
- this.hash(match[5] || '', replace);
+ this.hash(match[5] || '');
334
335
return this;
336
},
0 commit comments