Chromium Code Reviews| Index: chrome/browser/resources/settings/route.js |
| diff --git a/chrome/browser/resources/settings/route.js b/chrome/browser/resources/settings/route.js |
| index ec097c22c568cccce66fe0f156f8620d88b04298..78fd1ee6bfeecc07e78160b5e063f039f520f507 100644 |
| --- a/chrome/browser/resources/settings/route.js |
| +++ b/chrome/browser/resources/settings/route.js |
| @@ -266,7 +266,8 @@ cr.define('settings', function() { |
| initializeRouteFromUrlCalled_ = true; |
| var route = getRouteForPath(window.location.pathname); |
| - if (route) { |
| + // Never allow direct navigation to ADVANCED. |
| + if (route && route != Route.ADVANCED) { |
|
dschuyler
2016/08/17 22:54:12
Can we drop advanced altogether? I added it as
par
tommycli
2016/08/17 23:56:25
Can't easily drop it. It's needed to do all the AD
|
| currentRoute_ = route; |
| currentQueryParameters_ = new URLSearchParams(window.location.search); |
| } else { |