Skip to content

Instantly share code, notes, and snippets.

@kiennt2
Last active May 16, 2017 11:44
Show Gist options
  • Save kiennt2/3904e742d3d3a45685994a0c5a486488 to your computer and use it in GitHub Desktop.
Save kiennt2/3904e742d3d3a45685994a0c5a486488 to your computer and use it in GitHub Desktop.
M2 - remove base URL for files
/vendor/magento/framework/View/Asset/File.php
public function getUrl()
{
return '/static/' . $this->getPath();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment