From 1fb594f8d0f2bd7f0c44ddb5fe15ada72d3ec451 Mon Sep 17 00:00:00 2001 From: Tony Bowden Date: Thu, 28 Jul 2016 16:57:04 +0100 Subject: [PATCH] Fix broken page title on Wikidata pages These are currently passing the entire Legislature object, which stringifies to the JSON representation, rather than the name: Explicitly pass the name, so we don't get that spewage. --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index d751e343b..3b8a0cab0 100644 --- a/app.rb +++ b/app.rb @@ -82,7 +82,7 @@ def soft_redirect(url, page_title) last_sha = @house[:sha] popolo_file = EveryPolitician::GithubFile.new(@house[:popolo], last_sha) @popolo = JSON.parse(popolo_file.raw, symbolize_names: true) - @page_title = "EveryPolitician: #{@country[:name]} — #{@house}" + @page_title = "EveryPolitician: #{@country[:name]} — #{@house[:name]}" erb :wikidata_match end