Merge pull request #1529 from rmm5t/rel-canonical

Add rel=canonical URL to default RedirectResource template
v3-stable
Thomas Reynolds 2015-05-26 08:05:56 -07:00
commit d842023903
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Feature: Meta redirects
"""
And the Server is running at "large-build-app"
When I go to "/hello.html"
Then I should see '<link rel="canonical" href="world.html"'
Then I should see '<meta http-equiv=refresh content="0; url=world.html"'
Scenario: Redirect to external site

View File

@ -88,6 +88,7 @@ module Middleman
<<-END
<html>
<head>
<link rel="canonical" href="#{url}" />
<meta http-equiv=refresh content="0; url=#{url}" />
<meta name="robots" content="noindex,follow" />
<meta http-equiv="cache-control" content="no-cache" />