Closed jpatters closed 4 years ago
Hello @jpatters
You are completely right. It should be base_url
, not base_path
. Thanks for looking at it.
Do you want to provide a pull request to fix it? I can do it if you prefer, but since you already found the issue, it should be a quick fix. Up to you.
In the meantime, you can workaround this by not passing this config option and instead passing it as the BASE_URL_REDIRECT_TO
env var.
PR open. Glad I could be of assistance.
How Shlink is set-up
Summary
Setting
base_url_redirect_to
causes a 500 error when visiting the base url.Current behavior
I can post more of the stack trace if needed.
Expected behavior
It should redirect to the domain I set
base_url_redirect_to
to.I believe the issue is here: https://github.com/shlinkio/shlink/blob/master/module/Core/src/Config/SimplifiedConfigParser.php#L27
It looks like maybe that line should be. But I have only started looking at this today: