Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: pages/jobs/index.tmpl

Issue 4943676832743424: Issue 2204 - Restore compatibility with legacy job URLs (Closed)
Patch Set: Created March 24, 2015, 9:18 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pages/jobs/index.tmpl
===================================================================
--- a/pages/jobs/index.tmpl
+++ b/pages/jobs/index.tmpl
@@ -9,6 +9,10 @@
{
jQuery("#tabs-details").tabs();
});
+
+ // Compatibility with legacy job URLs
+ if (window.location.hash)
+ window.location.replace(window.location.href.replace(/\/*#/, "/"));
</script>
</head>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld