mirror of https://github.com/kiwix/libkiwix.git
Remove {root} from book item's link in library
The OPDS stream now provides full URL, including the custom root Appending {root} duplicates the custom root, when given resulting in a broken link
This commit is contained in:
parent
367e5d2636
commit
a8a68c54a2
|
@ -104,9 +104,9 @@
|
||||||
if (sort) {
|
if (sort) {
|
||||||
divTag.setAttribute('data-idx', bookOrderMap.get(id));
|
divTag.setAttribute('data-idx', bookOrderMap.get(id));
|
||||||
}
|
}
|
||||||
const faviconAttr = iconUrl != undefined ? `style="background-image: url('${root}${iconUrl}')"` : '';
|
const faviconAttr = iconUrl != undefined ? `style="background-image: url('${iconUrl}')"` : '';
|
||||||
const languageAttr = language != '' ? '' : 'style="background-color: transparent"';
|
const languageAttr = language != '' ? '' : 'style="background-color: transparent"';
|
||||||
divTag.innerHTML = `<a class="book__link" href="${root}${link}" data-hover="Preview">
|
divTag.innerHTML = `<a class="book__link" href="${link}" data-hover="Preview">
|
||||||
<div class="book__wrapper">
|
<div class="book__wrapper">
|
||||||
<div class="book__icon" ${faviconAttr}></div>
|
<div class="book__icon" ${faviconAttr}></div>
|
||||||
<div class="book__header">
|
<div class="book__header">
|
||||||
|
|
Loading…
Reference in New Issue