Fix Localhost Links in Most Popular Game Cards #765
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MyVideoGameList/myvideogamelist.com#765
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The most popular game cards should link to real MyVideoGameList game and platform pages, not localhost URLs that only work in a local development environment.
The current-year and upcoming popular game cards are shown across public pages, so broken host-specific links make the ranked game lists unusable for visitors even when the card content renders correctly.
Scope
Acceptance Criteria
Test Coverage Required
MostPopularGamesCardTestto assert current-year game links are route-based and do not containlocalhost.MostPopularUpcomingGamesCardTestto assert upcoming game links are route-based and do not containlocalhost.vendor/bin/pint --dirty --format agentbefore implementation closeout if PHP files change.Progress Checklist
vendor/bin/pint --dirty --format agentif PHP files changedThe links in both most popular lists are set to localhostto Fix Localhost Links in Most Popular Game CardsImplemented in dev commit
982d9b3.Summary:
Verification:
Final review notes:
devat commit982d9b3.App\Support\PopularGameRanker; upcoming popular game links are generated byApp\Support\UpcomingPopularGames.games.showandplatform.showroute URLs, so cached card metadata no longer depends onAPP_URLand cannot cachehttp://localhostlinks for visitors.site:most-popular-games:v2:*andsite:most-popular-upcoming-games:v4:*so old cached absolute URLs are bypassed.Verification re-run during review:
php artisan test --compact tests/Feature/MostPopularGamesCardTest.php tests/Feature/MostPopularUpcomingGamesCardTest.php— 12 passed, 102 assertionsvendor/bin/pint --dirty --format agent— passed