JavaScript not loading on certain pages

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 https://eurodiscover.eu/404 if anyone has time for a browse.

1 Like

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?

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.

6 Likes

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

Fixed in:

6 Likes