I think you can find the answer to your question here https://www.seroundtable.com/google-two-different-canonicals-undefined-30391.htmlWhat happens if there are two rel=canonical attributes on the page? Google
Good question, you can ask John Mueller on twitterjust ignores the canonical information? what if two rel=canonical attributes are the same?
There are two options here:just ignores the canonical information? what if two rel=canonical attributes are the same?
There are two options here:
1.they will both be ignored
2.they both will not count