Fixed the way ShortUrlIdentifier is created from requests, on different request scopes

This commit is contained in:
Alejandro Celaya
2020-02-01 12:54:10 +01:00
parent 327d35fe57
commit fd82de31c0
4 changed files with 13 additions and 5 deletions

View File

@@ -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();