JavaScript not loading on certain pages

(Craig Davison) #1

An example is when I visit a 404 page and the custom brand header child theme is installed.

The theme component works on most pages but on this page it fails with references errors

After closer inspection it seems that no discourse JavaScript code is being generated on some pages e.g. 404 pages. The page in question is if anyone has time for a browse.

Brand header theme component
(Craig Davison) #2

After looking into the logs it seems that it is loading the no_ember layout. I am unable to find the cause for this though. Anyone know why?

(Vinoth Kannan) #3

I am able to reproduce these errors in meta 404 page itself. See the browser console. We shouldn’t render custom theme codes in no_ember pages.

(Craig Davison) #5

Thanks for looking into this! Hoping for a fix soon :slight_smile:


Fixed in: