fix: Redirect after login
This commit is contained in:
parent
7f7ab76479
commit
8b707278b9
1 changed files with 2 additions and 2 deletions
|
|
@ -39,8 +39,8 @@ html, body {
|
|||
{% endif %}
|
||||
<script>
|
||||
frappe.ready(function() {
|
||||
if(window.location.hash) {
|
||||
localStorage.setItem('session_last_route', window.location.hash.substr(1));
|
||||
if (window.location.hash || window.location.href.includes('/app')) {
|
||||
localStorage.setItem('session_last_route', window.location.pathname + window.location.hash + window.location.search);
|
||||
}
|
||||
|
||||
$('.btn-primary').focus();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue