-
|
Hi! How to force generating absolute url? Could not find any options :( |
Beta Was this translation helpful? Give feedback.
Answered by
mbabker
Apr 4, 2025
Replies: 1 comment 1 reply
-
|
You can use the In a Twig context, it'd be something like this: {{ pagerfanta(pager, {referenceType: constant('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface::ABSOLUTE_URL')} }} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
scion4581
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
referenceTypeoption which will get passed through as the third argument in the router'sgenerate()method.In a Twig context, it'd be something like this:
{{ pagerfanta(pager, {referenceType: constant('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface::ABSOLUTE_URL')} }}