mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-22 05:25:15 +00:00
fix: enhance back navigation in NotFoundPage component
This commit is contained in:
@@ -12,7 +12,17 @@ export default function NotFoundPage() {
|
|||||||
Oops, the page you are looking for could not be found.
|
Oops, the page you are looking for could not be found.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Button onClick={() => window.history.back()} variant="secondary">
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
if (window.history.length > 1) {
|
||||||
|
window.history.back();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
window.location.href = "/";
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
variant="secondary"
|
||||||
|
>
|
||||||
Go Back
|
Go Back
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user