Going by the mention of 'amp', you are probably using some kind of extension or template functionality for that.
That will be the place where the 'Escort and solution lies.
How your page gets cached is outside the control of Advanced Module Manager.
hello, i have used the last few days to find the cause of the issue.
I want to deliver on .amp.html URL's other modules. This is done by Advanced Module Manager.
If I activate the cache (config -> System -> Cache), the page is cached as I call it.
And the condition I can set as URL in the advanced module manager don't work anymore when the cache is set.
Just test it:
$currentUri = Uri::current();
echo $currentUri;
First Call HTML $currentUri corresponds to: https://webseite/site.html
Second Call AMP $currentUri corresponds to: https://webseite/site.html
Reset cache
First call AMP $currentUri equals: https://webseite/site.amp.html
Second call HTML $currentUri corresponds to: https://webseite/site.amp.html
I can not imagine that this is correct
How do you see this?
With the Page Cache system plugin enabled, the entire page is cached, including all modules.
That means it will NOT go through Advanced Module Manager to see what modules should show up. It just shows the whole page via cache.
Well, as you described, this is down to caching, and how the AMP works.
What $currentUri results in, is outside the control of Advanced Module Manager. That is determined by Joomla itself.