view_layouts_base_html_head hook not working
It appears the
view_layouts_base_html_head hook isn’t working, because it’s already used by the Hook Manager plugin itself to register its stylesheet.
See the attached patch for a simple fix (tested against Hook Manager 1.0.0 running on Redmine 2.5.1).
Thanks for making this plugin.
#4 Updated by Fabien Crespel almost 6 years ago
- File hooks_manager_hook.rb.patch View added
- Status changed from Closed to Reopened
- Target version deleted (
- % Done changed from 100 to 90
Thanks for taking this bug into account and for fixing the plugin stylesheet issue.
However there is still an issue in version 1.0.1: the hook HTML code is automatically escaped, which makes it pretty useless in the head block.
Attached is a patch against 1.0.1 to mark the
view_layouts_base_html_head hook HTML code as safe.