Skip to content

Commit f53ecd7

Browse files
committed
Fix URL
1 parent 14429bb commit f53ecd7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Http/Middleware/HandleGlobalFilters.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ public function handle(Request $request, Closure $next)
1818
$filterKeys = explode(GlobalFilters::$valuesUrlSeparator, $filterKey);
1919

2020
if ($this->globalFiltersHandler->isEnabled()
21-
&& count($filterKeys) != count($this->globalFiltersHandler->getFilters())) {
22-
return redirect()->route('code16.sharp.home');
21+
&& count($filterKeys) != count($this->globalFiltersHandler->getFilters())
22+
) {
23+
return redirect()->route('code16.sharp.home', [
24+
'filterKey' => sharp()->context()->globalFilterUrlSegmentValue(),
25+
]);
2326
}
2427

2528
collect($this->globalFiltersHandler->getFilters())

0 commit comments

Comments
 (0)