We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6363c1a commit ff6a188Copy full SHA for ff6a188
404.html
@@ -81,10 +81,18 @@
81
return window.location.pathname.match(/^\/repo\/.+/);
82
}
83
84
- // Redirect repository paths to the home page for dynamic loading
+ // If this is a repository path, check format and handle accordingly
85
if (isRepoPath()) {
86
const path = window.location.pathname;
87
- window.location.replace('/' + '?repo_path=' + encodeURIComponent(path));
+ const pathMatch = path.match(/\/repo\/([^\/]+)\/([^\/]+)\/([^\/]+)\/?$/);
88
+
89
+ if (pathMatch) {
90
+ // Valid repository path format - direct navigate to maintain clean URL
91
+ window.location.href = path;
92
+ } else {
93
+ // Invalid repository path format - redirect to home page
94
+ window.location.replace('/');
95
+ }
96
97
</script>
98
</head>
0 commit comments