[No Bug]
Fix href when file is renamed.

Change-Id: I2387e0631bb10f8568ee88db56c574131c5cd82a
Signed-off-by: Casey Flynn <caseyflynn@google.com>
diff --git a/bundles/org.eclipse.orion.client.ui/web/edit/setup.js b/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
index 94c1d65..3a51be8 100644
--- a/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
+++ b/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
@@ -889,10 +889,10 @@
 			var metadata = evt.metadata;
 			if (metadata) {
 				var tabHref = evt.location.href;
-				sessionStorage.lastFile = PageUtil.hash();
-				if (!sessionStorage.lastFile) {
+				if (sessionStorage.lastFile === PageUtil.hash()) {
 					tabHref = uriTemplate.expand({resource: metadata.Location});
 				}
+				sessionStorage.lastFile = PageUtil.hash();
 				this.tabWidget.addTab(metadata, tabHref);
 			} else {
 				delete sessionStorage.lastFile;