From 3f14e8d52a9083e4564cec680d5b0c47e20683d0 Mon Sep 17 00:00:00 2001 From: David Laban Date: Fri, 27 Dec 2019 14:55:11 +0000 Subject: [PATCH] make title dynamic again There is a bunch of code that sets the page title dynamically, but it is all being overridden by a title tag in the main app/index.html template (the DOM is only allowed to have a single title tag in it, so subsequent title tags are ignored by all browsers). There is probably a better way to do this (using fastboot to fill in the correct title on the backend would be ideal) but this patch should be enough to restore the dynamic titles for browsers with javascript enabled. --- app/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/index.html b/app/index.html index 3edcccfd3b0..870816e87f0 100644 --- a/app/index.html +++ b/app/index.html @@ -5,7 +5,9 @@ - crates.io: Rust Package Registry + {{content-for 'head'}}