mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-14 10:22:06 +02:00
fix redirect a link with multiple query string
This commit is contained in:
parent
e7ad5fcb42
commit
641b4397a1
@ -94,9 +94,9 @@ class UserController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($query)) {
|
if(!empty($query)) {
|
||||||
$qs = '';
|
$qs = [];
|
||||||
foreach($query as $qk => $qv) { $qs .= $qk .'='. $qv; }
|
foreach($query as $qk => $qv) { $qs[] = $qk .'='. $qv; }
|
||||||
$link = $link .'?'. $qs;
|
$link = $link .'?'. implode('&', $qs);
|
||||||
}
|
}
|
||||||
|
|
||||||
Link::where('id', $linkId)->increment('click_number', 1);
|
Link::where('id', $linkId)->increment('click_number', 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user