We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 695be7e commit 4fdf1f5Copy full SHA for 4fdf1f5
1 file changed
app/helpers/application_helper.rb
@@ -1,8 +1,16 @@
1
module ApplicationHelper
2
def canonical_url(opts = {})
3
+ # Clean-up options
4
+ opts_parse = {}
5
+ opts.keys.map(&:to_s).sort.each do |k_s|
6
+ k = k_s.to_sym
7
+ next if k_s == 'page' and opts[k] == 1
8
+ opts_parse[k] = opts[k]
9
+ end
10
+
11
url_for({
12
only_path: false, protocol: 'https', host: 'registry.seqco.de'
- }.merge(opts))
13
+ }.merge(opts_parse))
14
end
15
16
def report_history(obj, text: 'Report history')
0 commit comments