Fix character profile data fetching URL to correctly append the character ID and file extension

This commit is contained in:
Florian Weber 2025-03-20 16:16:31 +01:00
parent 40ff7f5be7
commit 86d7a9215a
Signed by: f.weber
GPG Key ID: A1C85EB19014A2D3

View File

@ -15,7 +15,7 @@
{% endif %}
</div>
<script>
fetch("{{ '/assets/game-data/characters/' + include.id | relative_url }}")
fetch("{{ '/assets/game-data/characters/' | append: include.id | append: '.json' | relative_url }}")
.then(response => response.json())
.then(character => {
document.getElementById('name-{{ include.id }}').innerText = character.name;