Shopware is adding host Url to some network requests causing 404

I have installed shopware6 on Apache Server on Ubuntu 20.04 LTS. It is working fine for some of the URLs , for others it is adding hostname twice.

http://10.1.2.30/http://10.1.2.30/index.php/widgets/checkout/info

I have installed shopware on following path: /var/www/shopware/ .Here is my shopware configuration file for apache:

<VirtualHost *:80>
    ServerName "shopware"
    DocumentRoot /var/www/shopware/public

    <Directory /var/www/shopware/public>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/shopware-platform.error.log
    CustomLog ${APACHE_LOG_DIR}/shopware-platform.access.log combined
    Loglevel debug

</VirtualHost>

Is there something which I need to add in order to make it work?

Thansks

The issue was with the Apache Module mod_rewrite. I haven’t enable the rewrite module from apache. It is clearly mentioned in the shopware doc, but I missed it.

More details about mod_rewrite: mod_rewrite - Apache HTTP Server Version 2.4