Skip to content

Commit

Permalink
fix: build routing
Browse files Browse the repository at this point in the history
  • Loading branch information
krantheman committed Aug 5, 2024
1 parent 22e9ede commit fc5b7d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hrms/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

website_route_rules = [
{"from_route": "/hrms/<path:app_path>", "to_route": "hrms"},
{"from_route": "/roster/<path:app_path>", "to_route": "roster"},
{"from_route": "/hr/<path:app_path>", "to_route": "roster"},
]
# Jinja
# ----------
Expand Down
3 changes: 1 addition & 2 deletions roster/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "frappe-ui-frontend",
"name": "roster",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "vite",
"serve": "vite preview",
Expand Down
2 changes: 1 addition & 1 deletion roster/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const user = createResource({
url: "hrms.api.get_current_user_info",
auto: true,
onError() {
window.location.href = "/login?redirect-to=%2Froster";
window.location.href = "/login?redirect-to=%2Fhr%2Froster";
},
});
</script>

0 comments on commit fc5b7d2

Please sign in to comment.