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

**URL:** <https://discuss.ipfs.tech/t/how-to-output-the-current-cid-path-in-my-index-html/5388>\
**Category:** Help\
**Tags:** js-ipfs\
**Created:** [May 11, 2019, 8:23pm UTC](https://discuss.ipfs.tech/t/how-to-output-the-current-cid-path-in-my-index-html/5388 "2019-05-11T20:23:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![codingallnightlong](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@codingallnightlong](https://discuss.ipfs.tech/u/codingallnightlong)\
**Post date:** [May 11, 2019, 8:23pm UTC](https://discuss.ipfs.tech/t/how-to-output-the-current-cid-path-in-my-index-html/5388/1 "2019-05-11T20:23:23Z")

</div>

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](http://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](https://gateway.pinata.cloud/ipfs/qmxxxxxxxxxxxxxxxxxxxxxxxxx) and [https://cloudflare-ipfs.com/ipfs/qmxxxxxxxxxxxxxxxxxxxxxxxxx](https://cloudflare-ipfs.com/ipfs/qmxxxxxxxxxxxxxxxxxxxxxxxxx)" I don’t know how to do it 🙁

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

Can you help me? 🙄 😀
