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 cf68e51 commit 3d59902Copy full SHA for 3d59902
packages/react-renderer-demo/src/pages/404.js
@@ -64,7 +64,16 @@ const Custom404 = () => {
64
65
if (asPath.includes('/component-example/')) {
66
setLoading(true);
67
- push(asPath.replace('/component-example/', '/mappers/'));
+
68
+ let newPath = asPath.replace('/component-example/', '/mappers/');
69
70
+ if (!newPath.match(/\?mapper=/) && !newPath.match(/#/)) {
71
+ newPath = `${newPath}?mapper=mui`;
72
+ } else if (!newPath.match(/\?mapper=/)) {
73
+ newPath = newPath.replace(/#/, '?mapper=mui#');
74
+ }
75
76
+ push(newPath);
77
} else if (asPath.startsWith('/renderer/condition#') && conditionHashMapper[hash]) {
78
79
push(`/schema/${conditionHashMapper[hash]}`);
0 commit comments