borowiak / pwa-technologies

Automatically exported from code.google.com/p/pwa-technologies
0 stars 0 forks source link

No rewrite of the URL of <base> tags #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Pages that use the <base> tag to set the base for relative URLs aren't 
rewritten to use the archive prefix 
(https://developer.mozilla.org/en/HTML/Element/base).

What steps will reproduce the problem?
1. Open the page http://arquivo.pt/wayback/wayback/id27146index0
2. Click on any link beside those of the navigation left bar
3. The browser is directed to the live Web instead of staying inside the 
Archive.

The issue is caused by the lack of any rules for rewriting the base URL, either 
in the JS[1] code or the Java code[2]; that is, both the client-side rewrite as 
well as the server-side rewrite. 

[1] 
https://code.google.com/p/pwa-technologies/source/browse/trunk/PwaArchive-access
/projects/wayback/wayback-webapp/src/main/webapp/replay/client-rewrite.js
[2] 
https://code.google.com/p/pwa-technologies/source/browse/trunk/PwaArchive-access
/projects/wayback/wayback-core/src/main/java/org/archive/wayback/replay/HTMLPage
.java

Original issue reported on code.google.com by whisp...@gmail.com on 24 Jul 2012 at 5:41

GoogleCodeExporter commented 9 years ago

Original comment by whisp...@gmail.com on 30 Jul 2012 at 6:00