This patch simply adds JS/CSS to the page that has been added by blocks. Since the $scripts and $styles variables have already been set by the time hook_preprocess_page() is run, they need to be set again with the new content after adding the blocks.

CommentFileSizeAuthor
blocks404_js_css.patch691 bytesquicksketch

Comments

dries arnolds’s picture

Thanks, I was already wondering why my block js wasn't processed on the 404 page.

The patch works fine.

johnalbin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.