blacklight 6.14.0 → 6.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/controllers/concerns/blacklight/catalog.rb +2 -1
- data/spec/controllers/catalog_controller_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0781d81bd7e6f463adbda8b8c18ce4e36b1d942e'
|
4
|
+
data.tar.gz: 9eb7e235b9c918d98a464a67970d4ada88d7305f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 712ee1f20420f59b322bcfa87f2fcbde9485e4b592f336cf83a40a6d4c36c3ba35ea40f3eb68b609fb81414729540789c610aa74fd0646425b7f34823bae8ed7
|
7
|
+
data.tar.gz: 75adfcc650cb16ee515d0a6180a0e9de4bfd12d2d85ac4faf22db20dfa21dbd46345da050321eb334428d0511bcf23dd0662ab79aa11e47d6a81a3b2bc7a9c4f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.14.
|
1
|
+
6.14.1
|
@@ -57,7 +57,8 @@ module Blacklight::Catalog
|
|
57
57
|
search_session['per_page'] = params[:per_page]
|
58
58
|
|
59
59
|
if params[:redirect] and (params[:redirect].starts_with?('/') or params[:redirect] =~ URI.regexp)
|
60
|
-
|
60
|
+
uri = URI.parse(params[:redirect])
|
61
|
+
path = uri.query ? "#{uri.path}?#{uri.query}" : uri.path
|
61
62
|
redirect_to path, status: 303
|
62
63
|
else
|
63
64
|
redirect_to blacklight_config.document_model.new(id: params[:id]), status: 303
|
@@ -235,6 +235,11 @@ describe CatalogController do
|
|
235
235
|
put :track, params: { id: doc_id, counter: 3, redirect: 'http://localhost:3000/xyz' }
|
236
236
|
assert_redirected_to("/xyz")
|
237
237
|
end
|
238
|
+
|
239
|
+
it "keeps querystring on redirect" do
|
240
|
+
put :track, params: { id: doc_id, counter: 3, redirect: 'http://localhost:3000/xyz?locale=pt-BR' }
|
241
|
+
assert_redirected_to("/xyz?locale=pt-BR")
|
242
|
+
end
|
238
243
|
end
|
239
244
|
|
240
245
|
# SHOW ACTION
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.14.
|
4
|
+
version: 6.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,7 +17,7 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: exe
|
19
19
|
cert_chain: []
|
20
|
-
date: 2018-01-
|
20
|
+
date: 2018-01-30 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|