|
@@ -372,7 +372,8 @@ frappe.router = { |
|
|
|
|
|
|
|
|
strip_prefix(route) { |
|
|
strip_prefix(route) { |
|
|
if (route.substr(0, 1)=='/') route = route.substr(1); // for /app/sub |
|
|
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); |
|
|
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); |
|
|