Java combined with foreground single page jump

when users do not log in or login timeout, they have to jump to the page. If you visit the home page directly, I can jump to the landing page directly. However, set session to 30 seconds, wait for the timeout on the home page, click on an interface at random, and only display the jump on the console. However, there is no change on the page and the address has not changed. To solve the problem, html is based on spa single page application. The java jump is based on the resp.sendRedirect (url), foreground page effect of the interceptor, as shown in the figure
clipboard.png
Jump displays a html, directly in the newword instead of replacing the url,. Why

Mar.02,2021
Menu