From 9a473fbabff0f55bd22b695026477ee9a7431faa Mon Sep 17 00:00:00 2001 From: Jared Jacobs Date: Fri, 12 Jul 2013 13:14:59 -0700 Subject: [PATCH] properly support the empty URI (a relative URI) --- scripts/uncompressed/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/uncompressed/history.js b/scripts/uncompressed/history.js index 299e7721..caa2ea06 100644 --- a/scripts/uncompressed/history.js +++ b/scripts/uncompressed/history.js @@ -744,7 +744,7 @@ newState = {}; newState.normalized = true; newState.title = oldState.title||''; - newState.url = History.getFullUrl(oldState.url?oldState.url:(History.getLocationHref())); + newState.url = History.getFullUrl(oldState.url != null ? oldState.url : History.getLocationHref()); newState.hash = History.getShortUrl(newState.url); newState.data = History.cloneObject(oldState.data);