react-open-source-grid 1.3.7 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/404.html +7 -4
- package/package.json +1 -1
package/dist/404.html
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<title>Redirecting...</title>
|
|
6
6
|
<script>
|
|
7
7
|
// Only redirect if not already at index.html or root
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
var path = window.location.pathname;
|
|
9
|
+
var isRoot = path === '/' || path.endsWith('/index.html');
|
|
10
|
+
if (!isRoot) {
|
|
11
|
+
// Redirect to root, preserving path, query, and hash for React Router
|
|
10
12
|
var search = window.location.search;
|
|
11
13
|
var hash = window.location.hash;
|
|
12
|
-
var redirectUrl = '/' +
|
|
14
|
+
var redirectUrl = '/' + path.replace(/^\//, '') + search + hash;
|
|
13
15
|
window.location.replace(redirectUrl);
|
|
14
16
|
}
|
|
15
17
|
</script>
|
|
16
18
|
</head>
|
|
17
19
|
<body>
|
|
20
|
+
Redirecting...
|
|
18
21
|
</body>
|
|
19
22
|
</html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-open-source-grid",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A high-performance React DataGrid component with advanced features like virtual scrolling, infinite scrolling, tree data, market data mode, and more",
|
|
7
7
|
"main": "./dist/assets/index.js",
|