core: add option 'use_absolute_url' to args and context of url generation (pages and media)
(cherry picked from commit a33e0b20003888566e2c6bf3b64bd095566536f4)