2
I have an application that uses iframe to redirect pages without modifying the url. (I understand the consequences of doing this.)
The problem is that when updating the page with F5
is redirected to the source page, in case the login page, how to prevent it from being redirected to this page?
Detail, it seems a browser dependent behavior, because the redirection happened only in Chrome, in Mozilla and ie follow normal, or as I wish.
Below is an example for testing:
index.html
<!DOCTYPE html>
<html>
<head>
<title>Router</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<iframe src="pages/home.html"></iframe>
</body>
</html>
Calls pages/home.html
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<ul>
<li><a href="about.html">About</a></li>
</ul>
</body>
</html>
Which calls pages/about.html
<!DOCTYPE html>
<html>
<head>
<title>About</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<ul>
<li><a href="home.html">Home</a></li>
</ul>
</body>
</html>
In Chrome, if I go to about.html and press F5
it goes back to home.html, which is the default iframe file.
c vc had the possibility to use a php write the section with the current page file from there when update vc printa that section
– Jasar Orion