Skip to content

Instantly share code, notes, and snippets.

@skrosoft
Created November 21, 2018 05:27
Show Gist options
  • Save skrosoft/31a89f5f473535f7bf35eea9c6be5890 to your computer and use it in GitHub Desktop.
Save skrosoft/31a89f5f473535f7bf35eea9c6be5890 to your computer and use it in GitHub Desktop.
Using the ViewParametersGenerator symfony/ezplatform service
return new RedirectResponse(
sprintf('%s%s', $this->urlAliasGenerator->getPathPrefixByRootLocationId(
$first_child->locations[0]->contentInfo->mainLocationId
), $this->viewParametersGenerator->getFromRequest($request))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment