Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
full-page-map: fix alternative verticals iconUrl not using relativePa…
…th (#873) Noticed this while testing replacing all the IconComponent usages. Relative path was not being appended to the iconUrl correctly because the template was referencing just `relativePath` and not `@root.relativePath` or `../../relativePath` (i.e. it was using the wrong handlebars context). This wouldn't have caused visual issues for most users, since with the relativePath not being set correctly the iconUrl would get set to `/<iconUrl>`, instead of something like `../<iconUrl>` which for most cases will point to the same location. This only matters if somebody is taking the files output by the theme's build, and moving them into a directory structure. In that case things may break, since the two iconUrls above may no longer point to the same location. I changed the other two relativePath usages for consistency J=SLAP-1297 TEST=manual test that the iconUrl for alternativeverticals on a full page map now uses the correct relative url, instead of the absolute url that would result from relativePath being null added a percy snapshot for alternative verticals on the full page map, though this doesn't really test what was being fixed
- Loading branch information