Fixes #3058 - Search details sidebar name shows URL-encoded gibberish
This commit is contained in:
parent
d6f5baa87e
commit
ff5f175640
2 changed files with 19 additions and 4 deletions
|
@ -37,10 +37,8 @@ class App.Search extends App.Controller
|
||||||
)
|
)
|
||||||
|
|
||||||
meta: =>
|
meta: =>
|
||||||
if @query
|
title = @query || App.i18n.translateInline('Extended Search')
|
||||||
title = App.Utils.htmlEscape(@query)
|
|
||||||
else
|
|
||||||
title = App.i18n.translateInline('Extended Search')
|
|
||||||
meta =
|
meta =
|
||||||
url: @url()
|
url: @url()
|
||||||
id: ''
|
id: ''
|
||||||
|
|
17
spec/system/search_spec.rb
Normal file
17
spec/system/search_spec.rb
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe 'Search', type: :system, authenticated: true, searchindex: true do
|
||||||
|
before do
|
||||||
|
configure_elasticsearch(required: true, rebuild: true)
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'shows default widgets' do
|
||||||
|
fill_in id: 'global-search', with: '"Welcome"'
|
||||||
|
|
||||||
|
click_on 'Show Search Details'
|
||||||
|
|
||||||
|
within '#navigation .tasks a[data-key=Search]' do
|
||||||
|
expect(page).to have_text '"Welcome"'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue