File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ public function script($path, array $options = [])
146
146
*
147
147
* @param string|array $path Path string or URL array
148
148
* @param array $options Options array. Possible keys:
149
- * `fullBase` Return full URL with domain name
149
+ * `fullBase` Return full URL with domain name. Bool or string.
150
150
* `pathPrefix` Path prefix for relative URLs
151
151
* `ext` Asset extension to append
152
152
* `plugin` False value will prevent parsing path as a plugin
@@ -196,7 +196,8 @@ public function assetUrl($path, array $options = [])
196
196
$ path = $ this ->_encodeUrl ($ webPath );
197
197
198
198
if (!empty ($ options ['fullBase ' ])) {
199
- $ path = rtrim (Router::fullBaseUrl (), '/ ' ) . '/ ' . ltrim ($ path , '/ ' );
199
+ $ fullBaseUrl = is_string ($ options ['fullBase ' ]) ? $ options ['fullBase ' ] : Router::fullBaseUrl ();
200
+ $ path = rtrim ($ fullBaseUrl , '/ ' ) . '/ ' . ltrim ($ path , '/ ' );
200
201
}
201
202
202
203
return $ path ;
You can’t perform that action at this time.
0 commit comments