diff --git a/scripts/bundled-uncompressed/html4+html5/native.history.js b/scripts/bundled-uncompressed/html4+html5/native.history.js
index e272e9ba..db5efb36 100644
--- a/scripts/bundled-uncompressed/html4+html5/native.history.js
+++ b/scripts/bundled-uncompressed/html4+html5/native.history.js
@@ -2596,10 +2596,13 @@ if (typeof JSON !== 'object') {
// Apply
try {
- document.getElementsByTagName('title')[0].innerHTML = title.replace('<','<').replace('>','>').replace(' & ',' & ');
+ if(title) //Don't update the document title if newState title is empty/undefined.
+ document.getElementsByTagName('title')[0].innerHTML = title.replace('<','<').replace('>','>').replace(' & ',' & ');
}
catch ( Exception ) { }
- document.title = title;
+
+ if(title) //Don't update the document title if newState title is empty/undefined.
+ document.title = title;
// Chain
return History;
diff --git a/scripts/bundled-uncompressed/html5/native.history.js b/scripts/bundled-uncompressed/html5/native.history.js
index 84532d79..6b9dad90 100644
--- a/scripts/bundled-uncompressed/html5/native.history.js
+++ b/scripts/bundled-uncompressed/html5/native.history.js
@@ -1426,10 +1426,13 @@
// Apply
try {
- document.getElementsByTagName('title')[0].innerHTML = title.replace('<','<').replace('>','>').replace(' & ',' & ');
+ if(title) //Don't update the document title if newState title is empty/undefined.
+ document.getElementsByTagName('title')[0].innerHTML = title.replace('<','<').replace('>','>').replace(' & ',' & ');
}
catch ( Exception ) { }
- document.title = title;
+
+ if(title) //Don't update the document title if newState title is empty/undefined.
+ document.title = title;
// Chain
return History;