You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On <=beta.15 all image paths (<img src="my/path") were resolved as absolute paths from src folder. Even ones without starting slash /. Meaning we could use an existing image in src/assets/image.png like this <img src="assets/image.png"> from anywhere we want.
With beta.16 all image paths starting without slash / are now relative.
Using relative paths like <img src="../../assets/image.png"> are most of the time pain in the ass and makes more sense to use them absolute (<img src="/assets/image.png">).
And there comes the problem when using absolute paths with custom base tag (--base-href /myPath/).
It's obvious that it wont work because path such as /assets/image.png will ignore base tag and directly request app domain.
Actions required
Update CHANGELOG.md about this breaking change for ones who were using absolute paths for images without starting /, they should use it now.
Support absolute image paths with --base-href option by some webpack plugin which would prefix all image paths with that base url or make it relative (?)
The text was updated successfully, but these errors were encountered:
Problem
On <=beta.15 all image paths (
<img src="my/path"
) were resolved as absolute paths fromsrc
folder. Even ones without starting slash/
. Meaning we could use an existing image insrc/assets/image.png
like this<img src="assets/image.png">
from anywhere we want.With beta.16 all image paths starting without slash
/
are now relative.Using relative paths like
<img src="../../assets/image.png">
are most of the time pain in the ass and makes more sense to use them absolute (<img src="/assets/image.png">
).And there comes the problem when using absolute paths with custom base tag (
--base-href /myPath/
).It's obvious that it wont work because path such as
/assets/image.png
will ignore base tag and directly request app domain.Actions required
CHANGELOG.md
about this breaking change for ones who were using absolute paths for images without starting/
, they should use it now.--base-href
option by some webpack plugin which would prefix all image paths with that base url or make it relative (?)The text was updated successfully, but these errors were encountered: