Nextcloud redirect after installation

Hello there :slight_smile:
I’m still having a problem, with the wrong redirect after a fresh installation like mentioned here in the last comment:

After a fresh installation there is a redirect to the “dashboard”, but the host url is missing.
Example:
https://nextcloud/index.php/core/apps/recommended

This is my script and the vhost I’m using:

change_path will be replaced with /nextcloud/ in the installation.

After the wrong redirect, going back in the browser fixes the problem and I can use nextcloud and there is no error except the mentioned one on github.