Merge pull request #1529 from rmm5t/rel-canonical
Add rel=canonical URL to default RedirectResource template
This commit is contained in:
commit
d842023903
|
@ -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
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in a new issue