How to output the current CID path in my index.html?

Hello everybody and sorry in advance if my question is stupid…

I did in my console : ipfs add -r ( my directory)

I am able to access the content here : ipfs.io/ipfs/qmxxxxxxxxxxxxxxxxxxxxxxxxx

What I would like is to see automatically in my index. html the current “/ipfs/qmxxxxxxxxxxxxxxxxxxxxxxxxx”

Of course I did “window.location.pathname” in index.html and it work but as I want to dispay 2 other gateway links with the same CID like for example : https://gateway.pinata.cloud/ipfs/qmxxxxxxxxxxxxxxxxxxxxxxxxx and https://cloudflare-ipfs.com/ipfs/qmxxxxxxxxxxxxxxxxxxxxxxxxx" I don’t know how to do it :slightly_frowning_face:

the path ipfs/qm should be readable in chrome, firefox and safari.

Can you help me? :roll_eyes: :grinning: