Fix variable reference

Change-Id: Ib3c7f929ac0b882a4bcdc2fd7ba2341f2a56298a
This commit is contained in:
Wyatt Allen
2016-12-06 12:18:58 -08:00
parent b87d9e14f9
commit f9937b173b

View File

@@ -145,7 +145,7 @@
// TODO(kaspern): Utilize gr-url-encoding-behavior.html when the router
// is replaced with a Polymer counterpart.
// @see Issue 4255 regarding double-encoding.
var path = encodeURIComponent(encodeURIComponent(path));
var path = encodeURIComponent(encodeURIComponent(params.path));
// @see Issue 4577 regarding more readable URLs.
path = path.replace(/%252F/g, '/');
path = path.replace(/%2520/g, '+');