middleman-alias 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0eeeb5e5dbfea37a624c4ff3fad48fd44352f5d2
4
- data.tar.gz: b886f2e5d64ffa12d63320d71eb6c925583891d1
3
+ metadata.gz: fde8e6cd5a5473ffd8da034531e6f4981fe11651
4
+ data.tar.gz: 340b29a36d12fe60431bb205befc9c26705ae872
5
5
  SHA512:
6
- metadata.gz: ec066f6fd9e72024ab40de01856d5a7afaaa901b29cfc0d0e804d7120332a962bae14f9d585a35be2fb2e762dfa843a2fc1a185aa95caa25277b4fb669f996cc
7
- data.tar.gz: 532e41d96995192096125fbcfa6b362f29ea9630c8d39d7356dad8cc319c147b92307219f4a4b1233e91e9a8a7abd509cd6735b3aabf325b46c80ff9ed60c9af
6
+ metadata.gz: ce7daeabc363a7241e7553529b176b3ecef25c51252335048ccb76bb68d2d106a30c0532750bc8c26ca81ef78e0b2ebdbebc8ce5bbe2d763461dbca3cc8886c0
7
+ data.tar.gz: 596742f0b81eafa150538a84d175fcc14698a160689f25b76ada697b344f2239e7d8909572cc0173c0fb7fd40acbb99e83ec6df7f13d8d71b47e797a1dbd78f4
@@ -1,7 +1,7 @@
1
1
  module Middleman
2
2
  module Sitemap
3
3
  class AliasResource < ::Middleman::Sitemap::Resource
4
-
4
+
5
5
  attr_accessor :output
6
6
 
7
7
  def initialize(store, path, alias_path)
@@ -22,9 +22,13 @@ module Middleman
22
22
  <html>
23
23
  <head>
24
24
  <link rel="canonical" href="#{@alias_path}" />
25
- <meta http-equiv=refresh content="0; url=#{@alias_path}" />
26
25
  <meta name="robots" content="noindex,follow" />
27
26
  <meta http-equiv="cache-control" content="no-cache" />
27
+ <script>
28
+ // Attempt to keep search and hash
29
+ window.location.replace("#{@alias_path}"+window.location.search+window.location.hash);
30
+ </script>
31
+ <meta http-equiv=refresh content="0; url=#{@alias_path}" />
28
32
  </head>
29
33
  <body>
30
34
  <a href="#{@alias_path}">You are being redirected.</a>
@@ -1,3 +1,3 @@
1
1
  module MiddlemanAlias
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-alias
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.4.5
133
+ rubygems_version: 2.4.3
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Redirects for Middleman that are friendly to the Googles.