does not navigate back to the previous page

  Kiến thức lập trình

In the code

document.addEventListener('touchend', handleTouchEnd, false); 

when a 401 error occurs, it navigates to the “signup” page using location.href="signup". However, clicking the browser’s back button doesn’t return to the previous page, but instead navigates to a different page. In this case, redirect was not used.

After navigating to the “signup” page using clicking the browser’s back button does not return to the previous page but instead navigates to a different page.

After navigating to the “signup” page using location.href=”signup”, clicking the browser’s back button does not return to the previous page but instead navigates to a different page.

New contributor

asirupia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

2

LEAVE A COMMENT