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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c80294fa4aef88bdf6ec8a3f7690825a05840f77
4
- data.tar.gz: fb9bbf2a541804e29c34ad99c0e7eab733647c74
3
+ metadata.gz: '0781d81bd7e6f463adbda8b8c18ce4e36b1d942e'
4
+ data.tar.gz: 9eb7e235b9c918d98a464a67970d4ada88d7305f
5
5
  SHA512:
6
- metadata.gz: 1992d1b06cba55d9e3e1be01cb117631e211567e1a5b2c730d9b52a7a9d4c1229c83035bbe75530cdd1613105e110bd91e6b552a2828c692226eef38e9823c92
7
- data.tar.gz: ba9c70f09afc9d98de7ec6340bca9884ca1d4f29980d6ea81c2ae8e2fc1a1a130a4d705902dfb853e5d2a90f0364691a157bd14b33fd0716f3332716e039d876
6
+ metadata.gz: 712ee1f20420f59b322bcfa87f2fcbde9485e4b592f336cf83a40a6d4c36c3ba35ea40f3eb68b609fb81414729540789c610aa74fd0646425b7f34823bae8ed7
7
+ data.tar.gz: 75adfcc650cb16ee515d0a6180a0e9de4bfd12d2d85ac4faf22db20dfa21dbd46345da050321eb334428d0511bcf23dd0662ab79aa11e47d6a81a3b2bc7a9c4f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.14.0
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
- path = URI.parse(params[:redirect]).path
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.0
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-09 00:00:00.000000000 Z
20
+ date: 2018-01-30 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails