mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-04-06 15:30:30 +08:00
fix(servr-dev): Fix 404 redirect so that browser back works.
This commit is contained in:
parent
d6fb500670
commit
9df6579198
@ -26,7 +26,7 @@ const LoadingBlock = () => <div>Loading...</div>;
|
||||
const Page = ({ lowdefy }) => {
|
||||
const { data: pageConfig } = usePageConfig(lowdefy.pageId);
|
||||
if (!pageConfig) {
|
||||
lowdefy._internal.router.push(`/404`);
|
||||
lowdefy._internal.router.replace(`/404`);
|
||||
return <LoadingBlock />;
|
||||
}
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user