Browser History:Redirects: Difference between revisions

Added scenarios outline
(Added scenarios outline)
Line 9: Line 9:
Note that this problem is not generally solvable. First, some types of redirects are not detectable as redirects, such as navigations done by JavaScript on the web page. Second, it is always possible to construct cases where it is not well-defined what the correct answer is. For example, different combinations of redirect destinations changing temporally, multiple pages redirecting to the same page, multiple levels of redirects, and annotations associated  mean in some cases it is not well-defined what set of data should be shown for the page. As a result, the goal is to do something that catches reasonable cases of redirection, and doesn't give ansers that are clearly wrong.
Note that this problem is not generally solvable. First, some types of redirects are not detectable as redirects, such as navigations done by JavaScript on the web page. Second, it is always possible to construct cases where it is not well-defined what the correct answer is. For example, different combinations of redirect destinations changing temporally, multiple pages redirecting to the same page, multiple levels of redirects, and annotations associated  mean in some cases it is not well-defined what set of data should be shown for the page. As a result, the goal is to do something that catches reasonable cases of redirection, and doesn't give ansers that are clearly wrong.


== Example cases ==
== Scenarios ==


=== Typed Permanent Redirect ===
This is probably the most common case. The user types a common URL, such as "http://google.com/" or "http://amazon.com/" and is 301 (moved permanently) redirected to "http://www.google.com/" or "http://www.amazon.com/exec/obidos/subst/home/home.html".
=== Link Permanent Redirect ===
This is identical to the above case, but the redirected page was visited by clicking a link on another page. We may or may not want to handle these cases differently.
=== Bookmark Permanent Redirect ===
If you follow a bookmark and get a permanent redirect, should the bookmark be updated automatically? Some people think so, and other aren't so sure.
=== Typed temporary redirect ===
=== Link temporary redirect ===
== Bookmark temporary redirect ===


== Approach ==
== Approach ==
202

edits