unpoly-rails 3.5.1 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -279,7 +279,9 @@ module Unpoly
279
279
  def request_url_without_up_params
280
280
  original_url = request.original_url
281
281
 
282
- original_url.include?(Field::PARAM_PREFIX) or return original_url
282
+ query_presence_index = original_url.index("?")
283
+ return original_url if query_presence_index.nil?
284
+ return original_url if original_url.index(Field::PARAM_PREFIX, query_presence_index).nil?
283
285
 
284
286
  # Parse the URL to extract the ?query part below.
285
287
  uri = URI.parse(original_url)
@@ -3,6 +3,6 @@ module Unpoly
3
3
  ##
4
4
  # The current version of the unpoly-rails gem.
5
5
  # The first 3 digits should match the version of the Unpoly frontend code.
6
- VERSION = '3.5.1'
6
+ VERSION = '3.6.0'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unpoly-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-14 00:00:00.000000000 Z
11
+ date: 2023-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties