Describe the bug
Using a non-relative-path image URL for an achievement's Image breaks its in-chat "popup" display.
To Reproduce
Steps to reproduce the behavior:
Add/Edit Achievement
[Select]
Enter a non-relative URL (i.e. enter a URL that begins with http:// or https://)
Save
Trigger/award the achievement
Expected behavior
The bug appears to be a superfluous trailing slash in the <img src> contained within the div.achievement-message-container. An image with a relative path seems to degrade gracefully, but a direct URL breaks.
The problematic line is likely line 107 of /src/module/fvtt-player-achievements.js -- I'm guessing wrapping quotes around the ${achievement.image} will keep the self-closing slash from being rendered inside the URL, though maybe even just adding a space between the } and the /> will work.
Screenshots
Environment
Player Achievements v1.0.4
Foundry v11.315
Pathfinder 2e v5.9.4
Hosted on the Forge
Additional context
The images are absolute URLs because of the way the Forge's account-wide Assets Library works.
Describe the bug Using a non-relative-path image URL for an achievement's Image breaks its in-chat "popup" display.
To Reproduce Steps to reproduce the behavior:
Expected behavior The bug appears to be a superfluous trailing slash in the
<img src>
contained within thediv.achievement-message-container
. An image with a relative path seems to degrade gracefully, but a direct URL breaks.The problematic line is likely line 107 of
/src/module/fvtt-player-achievements.js
-- I'm guessing wrapping quotes around the${achievement.image}
will keep the self-closing slash from being rendered inside the URL, though maybe even just adding a space between the}
and the/>
will work.Screenshots
Environment
Additional context The images are absolute URLs because of the way the Forge's account-wide Assets Library works.