Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Unified Diff: runtime/bin/vmservice/client/lib/src/app/location_manager.dart

Issue 322483005: Final Observatory 1.5 fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/lib/src/app/location_manager.dart
diff --git a/runtime/bin/vmservice/client/lib/src/app/location_manager.dart b/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
index 11fb0a036c0704d502565ad5ec6cb305ea732b1c..20f4aa1ced68fffc85ad71f1a033f8452357abb0 100644
--- a/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
+++ b/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
@@ -75,11 +75,11 @@ abstract class LocationManager extends Observable {
/// Uses location.hash to encode application urls.
class HashLocationManager extends LocationManager {
void _onStartup() {
- String initialPath = '/${window.location.hash}';
+ String initialPath = '${window.location.hash}';
if ((window.location.hash == '') || (window.location.hash == '#')) {
- initialPath = '/#${_initialPath}';
+ initialPath = '#${_initialPath}';
}
- window.history.replaceState(initialPath, document.title, initialPath);
+ window.history.pushState(initialPath, document.title, initialPath);
_go(window.location.hash);
}

Powered by Google App Engine
This is Rietveld 408576698