MetaModels / core

MetaModels Core Module
GNU Lesser General Public License v3.0
96 stars 42 forks source link

incorrect sitemaps with two domains in one installation #1446

Closed heimseiten closed 3 years ago

heimseiten commented 3 years ago

Checklist before I submit this issue report

I confirm that:

My environment is:

MetaModels 2.1 at a live website MetaModels 2.2 at a test environment

Key Value Comments
PHP version: 7.4
Contao version: 4.9
MetaModels version: 2.1 and 2.2
Installed MetaModels packages: bundle_all
DCG version: 2.1.x-dev and "dev-release/2.2.0": "2.2.x-dev"

Issue description

There are two domains in one Contao installation. The sitemap is only generated correct, for the domain which is logged in. For example: When logged in in https://mmtest.ist-in-entwicklung.de/contao and press the sitemap generate checkbox then https://mmtest.ist-in-entwicklung.de/share/sitemap.xml is gernerated correct. But the sitemap from the other domain is incorrect: https://mm.ist-in-entwicklung.de/share/sitemap1.xml

When generated with console "vendor/bin/contao-console contao:automator generateSitemap" both sitemaps are incorrect.

Looks like this:

<url>
<loc>https://mm.ist-in-entwicklung.de/https%3A/mm.ist-in-entwicklung.de/details/test1.html</loc>
</url>

Screenshots

Bildschirmfoto 2021-07-07 um 14 24 36 Bildschirmfoto 2021-07-07 um 14 23 18

Can not update MM 2.2:

Bildschirmfoto 2021-07-07 um 14 15 05
zonky2 commented 3 years ago

Can not update MM 2.2:

@heimseiten: Please read your MM-2.2-Info-Emails!

https://community.contao.org/de/showthread.php?77348-MM-Fundraising-MetaModels-2-2-f%C3%BCr-Contao-4-9-80/page2&p=545030&viewfull=1#post545030

Update MM 2.2 and check again!

heimseiten commented 3 years ago

Thank you very much. I'll send you an early adopter 2.2 request via email!

heimseiten commented 3 years ago

Now I have deleted the vendor folder and updated the Version 2.2, but the sitemaps are still incorrect.

`

https://mm.ist-in-entwicklung.de/https%3A/mm.ist-in-entwicklung.de/details/test1.html `
zonky2 commented 3 years ago

o.k. - we ´ll check this

zonky2 commented 3 years ago

o.k. - that is really the case :( and if I change the (sub)domain and log in via it and create the XML, the links of my own (sub)domain are o.k. and the others are wrong...

zonky2 commented 3 years ago

fixed in MM 2.2