This commit is contained in:
Rizky 2024-03-10 17:08:01 +07:00
parent f05a9e14dc
commit 5da491fda6
1 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,11 @@ export default page({
location.pathname === "/ed" ||
location.pathname.startsWith("/ed/")
) {
location.href = "/ed/_/_";
if (params.site_id) {
navigate(`/ed/${params.site_id}/_`);
} else {
navigate("/ed/_/_");
}
} else if (location.pathname.startsWith("/editor")) {
const arr = location.pathname.split("/");
if (arr.length <= 2) {