File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,16 +95,16 @@ jobs:
9595 (function() {
9696 var path = window.location.pathname;
9797
98- // Match /latest/ or /v{version}/ patterns (e.g., /latest/en/index.html or /v6.13/en/index.html)
99- var versionPattern = /^\/(latest|v[\d.]+)\/(.*)/;
98+ // Match /observability-workshop/ latest/ or /observability-workshop/ v{version}/ patterns
99+ var versionPattern = /^\/observability-workshop\/ (latest|v[\d.]+)\/(.*)/;
100100 var match = path.match(versionPattern);
101101
102102 if (match) {
103103 // Extract the path after the version (e.g., "en/index.html")
104- var newPath = '/' + match[2];
104+ var newPath = match[2];
105105
106106 // Preserve query string and hash if present
107- var newUrl = window.location.origin + '/observability-workshop' + newPath + window.location.search + window.location.hash;
107+ var newUrl = window.location.origin + '/observability-workshop/ ' + newPath + window.location.search + window.location.hash;
108108
109109 // Redirect to new URL
110110 window.location.replace(newUrl);
You can’t perform that action at this time.
0 commit comments