diff --git a/app/views/shared/_social_media_meta_tags.html.erb b/app/views/shared/_social_media_meta_tags.html.erb
index af48d2bda..01811be41 100644
--- a/app/views/shared/_social_media_meta_tags.html.erb
+++ b/app/views/shared/_social_media_meta_tags.html.erb
@@ -8,9 +8,7 @@
" />
" />
-<% if setting["url"] %>
- " />
-<% end %>
+
<% if setting["facebook_handle"] %>
" />
<% end %>
diff --git a/spec/system/social_media_meta_tags_spec.rb b/spec/system/social_media_meta_tags_spec.rb
index b7e751396..f5b52412c 100644
--- a/spec/system/social_media_meta_tags_spec.rb
+++ b/spec/system/social_media_meta_tags_spec.rb
@@ -8,7 +8,6 @@ describe "Social media meta tags" do
"Citizen participation tool for an open, transparent and democratic government."
end
let(:twitter_handle) { "@consul_test" }
- let(:url) { "http://consul.dev" }
let(:facebook_handle) { "consultest" }
let(:org_name) { "CONSUL TEST" }
@@ -17,7 +16,6 @@ describe "Social media meta tags" do
Setting["meta_title"] = meta_title
Setting["meta_description"] = meta_description
Setting["twitter_handle"] = twitter_handle
- Setting["url"] = url
Setting["facebook_handle"] = facebook_handle
Setting["org_name"] = org_name
end
@@ -30,7 +28,7 @@ describe "Social media meta tags" do
expect(page).to have_meta "twitter:description", with: meta_description
expect(page).to have_meta "twitter:image", with: "#{app_host}/social_media_icon_twitter.png"
expect(page).to have_property "og:title", with: meta_title
- expect(page).to have_property "article:publisher", with: url
+ expect(page).to have_property "article:publisher", with: "#{app_host}/"
expect(page).to have_property "article:author", with: "https://www.facebook.com/#{facebook_handle}"
expect(page).to have_property "og:url", with: "#{app_host}/"
expect(page).to have_property "og:image", with: "#{app_host}/social_media_icon.png"