2
0
mirror of https://github.com/frappe/books.git synced 2025-01-24 07:38:25 +00:00

fix: navigation issue cause of "/"

This commit is contained in:
18alantom 2023-05-26 10:24:24 +05:30 committed by Alan
parent 5f32c45736
commit 2bf5d3c38a
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ import QuickEditForm from 'src/pages/QuickEditForm.vue';
import Report from 'src/pages/Report.vue'; import Report from 'src/pages/Report.vue';
import Settings from 'src/pages/Settings/Settings.vue'; import Settings from 'src/pages/Settings/Settings.vue';
import TemplateBuilder from 'src/pages/TemplateBuilder/TemplateBuilder.vue'; import TemplateBuilder from 'src/pages/TemplateBuilder/TemplateBuilder.vue';
import { reactive } from 'vue';
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'; import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import { historyState } from './utils/refs'; import { historyState } from './utils/refs';

View File

@ -349,7 +349,7 @@ export function getFormRoute(
return route; return route;
} }
return `/edit/${schemaName}/${name}`; return `/edit/${schemaName}/${name.replaceAll('/', '%2F')}`;
} }
export async function getDocFromNameIfExistsElseNew( export async function getDocFromNameIfExistsElseNew(