Assume I have the following 3 paths: '/home' '/folder' '/folder/file'.
When the user visits '/folder/', it automatically redirects him to '/folder/file'.
However, this breaks the following flow:
At this point, the user would get stuck in this infinite loop because the previous point in history is /folder which redirects him back to /folder/file.
My question is: How do I skip over '/folder' in history (when I hit backspace in /folder/file) and go directly to the last page in history that is not /folder.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.