- Fixed the thumbnail loading issue on paginated pretty URLs.
The bug was relative media paths like media/thumbs/... resolving under routes such as /v/<slug>?page=2 or /search/<query>?page=2. I added public_media_url() in [includes/db.php](/Users/tyemeclifford/Documents/GH/mediaplayer/includes/db.php) and updated public thumbnails, posters, and local player sources in [index.php](/Users/tyemeclifford/Documents/GH/mediaplayer/index.php), [catalogue.php](/Users/tyemeclifford/Documents/GH/mediaplayer/catalogue.php), and [embed.php](/Users/tyemeclifford/Documents/GH/mediaplayer/embed.php) to use root/base-aware URLs.
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ render_head('Videos — TyClifford.com', '
|
||||
<a class="cat-thumb" href="<?= h(public_video_url($vslug)) ?>" title="<?= h($vtitle) ?>">
|
||||
<div class="cat-thumb-img">
|
||||
<?php if ($vthumb): ?>
|
||||
<img src="<?= h(MEDIA_URL . $vthumb) ?>" alt="<?= h($vtitle) ?>" loading="lazy">
|
||||
<img src="<?= h(public_media_url($vthumb)) ?>" alt="<?= h($vtitle) ?>" loading="lazy">
|
||||
<?php else: ?>
|
||||
<div class="no-thumb">NO THUMBNAIL</div>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user