mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Fixed the way ShortUrlIdentifier is created from requests, on different request scopes
This commit is contained in:
@@ -45,8 +45,8 @@ abstract class AbstractTrackingAction implements MiddlewareInterface
|
||||
|
||||
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
||||
{
|
||||
$shortCode = $request->getAttribute('shortCode', '');
|
||||
$identifier = ShortUrlIdentifier::fromRequest($request);
|
||||
$identifier = ShortUrlIdentifier::fromRedirectRequest($request);
|
||||
$shortCode = $identifier->shortCode();
|
||||
$query = $request->getQueryParams();
|
||||
$disableTrackParam = $this->appOptions->getDisableTrackParam();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user