LiuDeng / memento-browser

Automatically exported from code.google.com/p/memento-browser
0 stars 0 forks source link

Problems with fragments #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When viewing a Memento, clicking on a link with a fragment 
(http://foo.org/bar.html#abc) will attempt to load a new Memento instead of 
just positioning the browser at #abc.

Original issue reported on code.google.com by tronma...@gmail.com on 31 Dec 2010 at 3:44

GoogleCodeExporter commented 8 years ago
This will come down to checking to see if [request.URL.fragment 
isEqualToString:@""] is populated in 
-(BOOL) webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest 
*)request navigationType:(UIWebViewNavigationType)navigationType of 
ViewController.m. 

A simple conditional and break will not suffice, as the logic to keep the URI 
(sans the respective archive's URI being preprended) needs to be maintained.

Any website with a #top link should serve as a good test case. I was using 
http://www.w3schools.com/tags/tag_a.asp but am not got lost in the logic. Maybe 
someone more familiar can advise.

Original comment by m...@matkelly.com on 15 Oct 2012 at 10:12