Fixing assets path generation by using ->getBasePath().