Skip to content

Commit aeb4ba5

Browse files
andrasbacsaiclaude
andcommitted
fix: Track storage index page in recents menu
Change storage route matching from prefix-based to exact match for storage.show, allowing storage.index to fall through to the static page labels section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 0780f47 commit aeb4ba5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Middleware/TrackRecentPages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ protected function deriveLabelAndSublabel(Request $request, $route): array
144144
return ['label' => $label, 'sublabel' => null];
145145
}
146146

147-
// Storage routes
148-
if (str_starts_with($routeName, 'storage.')) {
147+
// Storage show route (specific storage)
148+
if ($routeName === 'storage.show') {
149149
$uuid = $request->route('storage_uuid');
150150
if ($uuid) {
151151
$storage = S3Storage::where('uuid', $uuid)->first();

0 commit comments

Comments
 (0)