diff --git a/docs/.vuepress/public/not-found.html b/docs/.vuepress/public/not-found.html index dc022149e..e9d93eb73 100644 --- a/docs/.vuepress/public/not-found.html +++ b/docs/.vuepress/public/not-found.html @@ -86,7 +86,7 @@

404

{ title: "AccelerateWP", description: "AccelerateWP carries a suite of optimization features that can be enabled and automatically configured for the end user's site.", - link: "/cloudlinuxos/shared-pro/accelerate-wp/", + link: "/cloudlinuxos/shared-pro/#acceleratewp", }, { title: "CLN - CloudLinux Licenses", @@ -132,6 +132,7 @@

404

$('.custom-button').click(function() { var link = $(this).data('link'); window.location.href = link; // Navigate to the link + window.history.pushState({}, '', link); }); }); diff --git a/docs/.vuepress/routes.json b/docs/.vuepress/routes.json index 2449c9b29..42ec86c7f 100644 --- a/docs/.vuepress/routes.json +++ b/docs/.vuepress/routes.json @@ -51,7 +51,8 @@ "/cloudlinuxos": "/cloudlinuxos/cloudlinux_installation/#installation", "/shared": "/cloudlinuxos/", "/shared-pro/accelerate-wp/#set-upgrade-url-for-cdn": "/cloudlinuxos/shared-pro/#set-upgrade-url-for-cdn", - "/shared-pro/accelerate-wp": "/cloudlinuxos/shared-pro/#acceleratewp", "/shared-pro/": "/cloudlinuxos/shared-pro/", - "/cloudlinuxos-pro/introduction/":"/cloudlinuxos/shared-pro/#introduction" + "/cloudlinuxos-pro/introduction/":"/cloudlinuxos/shared-pro/#introduction", + "/shared-pro/accelerate-wp": "/cloudlinuxos/shared-pro/#acceleratewp", + "/cloudlinuxos/shared-pro/accelerate-wp/": "/cloudlinuxos/shared-pro/#acceleratewp" } diff --git a/docs/.vuepress/theme/layouts/NotFound.vue b/docs/.vuepress/theme/layouts/NotFound.vue index 8090df687..637b77b80 100644 --- a/docs/.vuepress/theme/layouts/NotFound.vue +++ b/docs/.vuepress/theme/layouts/NotFound.vue @@ -68,9 +68,8 @@ onMounted(async () => { router.push(newPath); window.location.href = newPath; } else { - // Show the iframe and set the source to 'not-found.html' - showIframe.value = true; - iframeSrc.value = '/not-found.html'; + router.push('/not-found.html'); + window.location.href = ('/not-found.html'); } });