Using champions alias instead of id in urls
All checks were successful
pipeline / build-and-push-images (push) Successful in 25s

This commit is contained in:
2024-11-24 12:13:00 +01:00
parent fc402120ba
commit 862e3f1b99
4 changed files with 27 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ watch(searchText, (newT, oldT) => {
<input v-model="searchText" ref="searchBar" class="search-bar" type="text" placeholder="Champion name..."/>
</div>
<div class="champion-container" style="margin-top: 20px;">
<RouterLink style="margin-left: 5px; margin-right: 5px;" v-for="champion in filteredChampions" :to="'/champion/' + champion.id">
<RouterLink style="margin-left: 5px; margin-right: 5px;" v-for="champion in filteredChampions" :to="'/champion/' + champion.alias.toLowerCase()">
<img :src="CDRAGON_BASE + mapPath(champion.squarePortraitPath)" :alt="champion.name"/>
</RouterLink>
</div>