inph
Active member
Pages generated by Google or Bing's (and possibly other search engines) "Cached" views contain broken links due to an overriding <base> tag at the top of the page and relative page links generated by Xenforo.
Browsers:
Chrome 11, Firefox 4, IE7 and later will all ignore subsequent <base> tags that appear after the initial <base> tag.
Opera 11, IE6 will process the additional base tag which also renders the CSS and references the Javascript correctly on the cached view.
Edit: In Opera, viewing "Text Only Version" will also produce broken links.
One solution would be to move from generated relatives to links including the root /
<a href="threads/redirection-scripts-for-vbulletin-3-x.5030/page-2
to
<a href="/community/threads/redirection-scripts-for-vbulletin-3-x.5030/page-2
http://www.google.co.uk/search?q=site:xenforo.com google cache links

http://webcache.googleusercontent.com/search?q=cache:mA4H1uMotIkJ:xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/ site:xenforo.com google cache links

http://xenforo.com/community/thread...vbulletin-3-x.5030/forums/add-on-releases.32/

http://xenforo.com/community/thread...-3-x.5030/attachments/import-301-v2-zip.7288/

Opera 11: http://webcache.googleusercontent.com/search?q=cache:mA4H1uMotIkJ:xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/ site:xenforo.com google cache links

Google Cached Page Source
Bing Cached Page Source
Google Cached Text Only Version Page Source
Browsers:
Chrome 11, Firefox 4, IE7 and later will all ignore subsequent <base> tags that appear after the initial <base> tag.
Opera 11, IE6 will process the additional base tag which also renders the CSS and references the Javascript correctly on the cached view.
Edit: In Opera, viewing "Text Only Version" will also produce broken links.
One solution would be to move from generated relatives to links including the root /
<a href="threads/redirection-scripts-for-vbulletin-3-x.5030/page-2
to
<a href="/community/threads/redirection-scripts-for-vbulletin-3-x.5030/page-2
http://www.google.co.uk/search?q=site:xenforo.com google cache links

http://webcache.googleusercontent.com/search?q=cache:mA4H1uMotIkJ:xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/ site:xenforo.com google cache links

http://xenforo.com/community/thread...vbulletin-3-x.5030/forums/add-on-releases.32/

http://xenforo.com/community/thread...-3-x.5030/attachments/import-301-v2-zip.7288/

Opera 11: http://webcache.googleusercontent.com/search?q=cache:mA4H1uMotIkJ:xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/ site:xenforo.com google cache links

Google Cached Page Source
PHP:
<!DOCTYPE html><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="http://xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/">
[snip google generated header html]
<!DOCTYPE html>
<html id="XenForo" lang="en-US" class="Public LoggedOut" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="utf-8" />
<base href="http://xenforo.com/community/" />
<title>Redirection Scripts for vBulletin 3.x | XenForo Community</title>
Bing Cached Page Source
PHP:
<base href="http://xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/" /><meta http-equiv="content-type" content="text/html; charset=utf-8" /><!-- Banner:Start -->
[snip bing generated header html]
<!-- Banner:End --><div style="position:relative"><!DOCTYPE html>
<html id="XenForo" lang="en-US" class="Public LoggedOut" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="utf-8" />
<base href="http://xenforo.com/community/" />
Google Cached Text Only Version Page Source
PHP:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="http://xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/">
[snip google generated header html]
<html id="XenForo" lang="en-US" class="Public LoggedOut" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="utf-8" />
<title>Redirection Scripts for vBulletin 3.x | XenForo Community</title>
<meta name="description" content="If you have imported your vBulletin 3.x database into XenForo, you can automatically redirect all traffic destined for your vBulletin content to its new..." />