Skip to content

Commit

Permalink
fix: 🐛 people tags filter link (#5568)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhymxu authored Oct 8, 2021
1 parent 2c33e0b commit 0cabd16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ Matthew Fitzgerald @mfitzgerald2 <matt@mfitz.net>
Simon Van Accoleyen @SimonVanacco <simon@vanacco.fr>
Michael Bianco <mike@mikebian.co>
Ben Fesili @benfes
Markus Dick @markusdick
Markus Dick @markusdick
Dung Nguyen @nhymxu
4 changes: 4 additions & 0 deletions app/Http/Controllers/ContactsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ private function contacts(Request $request, bool $active)
return 'tags[]='.urlencode($tag->name);
})->join('&');

if ('' !== $url) {
$url .= '&';
}

if ($tags->count() === 0) {
return redirect()->route('people.index');
} else {
Expand Down

0 comments on commit 0cabd16

Please sign in to comment.