In Drupal-specific Twig template I can get current path like
{% set pagePath = path('<current>') %}
But such a way doesn't contain query string e.g. ?param=value
if the latter is present in the path
Is there a "built-in" way in Drupal-specific Twig to get full path including query string?
Under "built-in" I mean "without preprocessing it in a PHP code", e.g. in a module or in the themename.theme
file with PHP code
Note on possible duplicates
I am not sure this is a duplicate of https://stackoverflow.com/a/20329384 as Drupal has its own specific Twig syntax - unfortunately that Symfony-specific option doesn't work here.