Skip to content

Commit 100be32

Browse files
authored
Merge pull request #2156 from Zelda-Cat/fix-sponsor-link
Fix link to sponsor #2512
2 parents 6632e6e + 2fcbdfa commit 100be32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/admin/sponsors/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.bg-light.p-3.mb-4
1717
%dl.row
1818
%dt= t('.website')
19-
%dd= link_to @sponsor.website
19+
%dd= link_to @sponsor.website, @sponsor.website, target: '_blank'
2020

2121
%dt= t('.address')
2222
- if @sponsor.address.present?

spec/features/admin/sponsor_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
scenario 'displays all sponsor details' do
9898
expect(page).to have_content(sponsor.name)
9999
expect(page).to have_content(sponsor.description)
100-
expect(page).to have_link(sponsor.website)
100+
expect(page).to have_link(sponsor.website, href: sponsor.website)
101101
expect(page).to have_content(sponsor.level)
102102
expect(page).to have_content(ContactPresenter.new(sponsor.contacts.first).full_name)
103103

0 commit comments

Comments
 (0)