Selaa lähdekoodia

Merge pull request #13286 from gavindsouza/router-fix

fix: Don't strip 'app' from doctype route names
version-14
mergify[bot] 4 vuotta sitten
committed by GitHub
vanhempi
commit
1c5747bf71
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. +2
    -1
      frappe/public/js/frappe/router.js

+ 2
- 1
frappe/public/js/frappe/router.js Näytä tiedosto

@@ -372,7 +372,8 @@ frappe.router = {

strip_prefix(route) {
if (route.substr(0, 1)=='/') route = route.substr(1); // for /app/sub
if (route.startsWith('app')) route = route.substr(4); // for desk/sub
if (route.startsWith('app/')) route = route.substr(4); // for desk/sub
if (route == 'app') route = route.substr(4); // for /app
if (route.substr(0, 1)=='/') route = route.substr(1);
if (route.substr(0, 1)=='#') route = route.substr(1);
if (route.substr(0, 1)=='!') route = route.substr(1);


Ladataan…
Peruuta
Tallenna