Permalink
Browse files

Supporting full urls on css/js/image url constants

  • Loading branch information...
1 parent f34388c commit c0212a0454ea4ce4fb6d49f3efb832a04963e14a @jrbasso jrbasso committed May 28, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/View/Helper.php
@@ -322,6 +322,9 @@ public function assetUrl($path, $options = array()) {
) {
$path .= $options['ext'];
}
+ if (strpos($path, '://') !== false) {
+ return $path;
+ }
if (isset($plugin)) {
$path = Inflector::underscore($plugin) . '/' . $path;
}

0 comments on commit c0212a0

Please sign in to comment.