diff --git a/web/concrete/core/libraries/block_view_template.php b/web/concrete/core/libraries/block_view_template.php
index <HASH>..<HASH> 100644
--- a/web/concrete/core/libraries/block_view_template.php
+++ b/web/concrete/core/libraries/block_view_template.php
@@ -180,6 +180,8 @@ class Concrete5_Library_BlockViewTemplate {
 		$items = array();
 		$h = Loader::helper("html");
 		$dh = Loader::helper('file');
+		$uh = Loader::helper('concrete/urls');
+		$bt = BlockType::getByHandle($this->btHandle);
 		if ($this->checkHeaderItems == false) {
 			return $items;
 		} else {
@@ -187,10 +189,10 @@ class Concrete5_Library_BlockViewTemplate {
 				if (file_exists($this->basePath . '/' . $i)) {
 					switch($t) {
 						case 'CSS':
-							$items[] = $h->css($this->getBaseURL() . '/' . $i);
+							$items[] = $h->css($uh->getBlockTypeAssetsURL($bt, $i));
 							break;
 						case 'JAVASCRIPT':
-							$items[] = $h->javascript($this->getBaseURL() . '/' . $i);
+							$items[] = $h->javascript($uh->getBlockTypeAssetsURL($bt, $i));
 							break;
 					}
 				}
Allow overriding package's blocks assets (view.js & view.css)


Former-commit-id: cee1f<I>c<I>f2f3db<I>fe<I>ee<I>