Skip to content

Commit 55192cb

Browse files
committed
fix: after switch profile get 404 page for page role access
1 parent d91c973 commit 55192cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/src/js/frontend/dashboard/header.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const header = () => {
1616
onSuccess: (res: AjaxResponse) => {
1717
window.TutorCore.toast.success(res?.message);
1818
setTimeout(() => {
19-
window.location.reload();
19+
window.location.href = window._tutorobject.tutor_frontend_dashboard_url;
2020
}, 1000);
2121
},
2222
onError: (error: Error) => {

0 commit comments

Comments
 (0)