The problem is that these two url structures return the same AMP page.
Thank you for your response. How to check that we have an existing slug “amp” and how to fix the problem because this double amp is detrimental to our SEO. Thank you very much for your help.