In the constructor, set loadFlags LOAD_REPLACE so that window.location uses the updated URI.
diff --git a/js/ndnProtocol/modules/ContentChannel.jsm b/js/ndnProtocol/modules/ContentChannel.jsm
index 4e83f10..ba09fa9 100644
--- a/js/ndnProtocol/modules/ContentChannel.jsm
+++ b/js/ndnProtocol/modules/ContentChannel.jsm
@@ -20,8 +20,9 @@
this.done = false;
this.name = uri.spec;
- // This is set by the caller of asyncOpen.
- this.loadFlags = 0;
+ // Bit 18 "LOAD_REPLACE" means the window.location should use the URI set by onStart.
+ // loadFlags is updated by the caller of asyncOpen.
+ this.loadFlags = (1<<18);
this.loadGroup = null;
this.status = 200;