fix: Redirect after login

This commit is contained in:
Suraj Shetty 2021-09-09 15:29:02 +05:30
parent 7f7ab76479
commit 8b707278b9

View file

@ -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();