]> BookStack Code Mirror - bookstack/commit
Updated custom request overrides to better match original intent
authorDan Brown <redacted>
Sat, 2 Apr 2022 16:14:37 +0000 (17:14 +0100)
committerDan Brown <redacted>
Sat, 2 Apr 2022 16:14:37 +0000 (17:14 +0100)
commit4dce03c0d3747788bd716fcedb7564bfedce7598
tree5fefbee8300f9e26cb97a47419b0ca98ffdb0abe
parentaffae2e3c422282f0fdf5e2c5f924182067a9fee
Updated custom request overrides to better match original intent

This updates the custom Request handler to provide only the scheme and
host on the `getSchemeAndHttpHost` call, instead of providing the whole
APP_URL value, while adding an override to the 'getBaseUrl' to use the
APP_URL content instead of the guessed/detected Symfony value.

Untested apart from simple local setup.

Related to #2765
app/Http/Request.php