Skip to content

Instantly share code, notes, and snippets.

@mcrowe
Created December 6, 2011 19:07
Show Gist options
  • Save mcrowe/1439471 to your computer and use it in GitHub Desktop.
Save mcrowe/1439471 to your computer and use it in GitHub Desktop.
Trapped in an Iframe - A horror story
%head
...
%link{rel: 'canonical', href: "http://[MyDomain].com#{request.path}"}
if parent.frames.length > 0
top.location.replace(document.location)
<!-- Who are You -->
<frameset rows="100%,*" border="0" framespacing="0">
<frame name="top" src="http://[MyDomain].com" marginwidth="0"
marginheight="0" scrolling="auto" frameborder="0">
</frameset>
<noframes></noframes>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment