-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid hard-coded module path in template #35
Comments
Also interesting: We are adding the library, via There is an example in Drupal core which uses a placeholder mechanism for assets in an iframe content. This same technique is used in the main We could use the same technique, but for now I would prefer to do something simpler, and simply pass the module path as a variable. |
I was having trouble with making it work with the library so I took that bad shortcut, and kinda forgot about it, even after fixing it once. |
Issue CollaboraOnline#35: Avoid hard-coded module path in template.
The
templates/collabora-online-full.html.twig
template contains hard-coded paths in the urls to js and css files.This assumes that the module is in
/modules/contrib/collabora_online
, which is not guaranteed.It also assumes that the base url is just
/
, which means Drupal is not installed in a subdirectory.Instead, these urls should be composed from variables passed into the template.
The text was updated successfully, but these errors were encountered: