# collectionVariable not shown in path of web documentation

**URL:** <https://community.postman.com/t/collectionvariable-not-shown-in-path-of-web-documentation/15560>\
**Category:** Help Hub\
**Tags:** variables, collections\
**Created:** [September 2, 2020, 4:35pm UTC](https://community.postman.com/t/collectionvariable-not-shown-in-path-of-web-documentation/15560 "2020-09-02T16:35:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawnh](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@shawnh](https://community.postman.com/u/shawnh)\
**Post date:** [September 2, 2020, 4:35pm UTC](https://community.postman.com/t/collectionvariable-not-shown-in-path-of-web-documentation/15560/1 "2020-09-02T16:35:21Z")

</div>

I’m relatively new to Postman, and I noticed a strange issue when looking at my web documentation for a collection. I have a collection with several folders. At the collection level, I’ve defined a variable {{base\_url}} in the pre-request script. At the folder level, I’ve defined a collectionVariable {{api\_path}} in the pre-request script for the folder. I combine those in each request. For example:

{{base\_url}}/{{api\_path}}/home

When I send the request, it returns the expected response. Everything is working fine. However, when I view the web documentation, the {{api\_path}} variable is not shown. What I see is:

{{base\_url}}//home

Am I doing something wrong, or is this a bug?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kurmavatar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kurmavatar/32/3026_2.png) [@Kurmavatar](https://community.postman.com/u/Kurmavatar)\
**Post date:** [September 7, 2020, 12:43pm UTC](https://community.postman.com/t/collectionvariable-not-shown-in-path-of-web-documentation/15560/2 "2020-09-07T12:43:55Z")

</div>

Hi @shawnh

Welcome to the community 👋

May I know if you are trying to set the [environment variables](https://learning.postman.com/docs/sending-requests/variables/#choosing-variables) from the pre-requests scripts of the collection/folder level? If yes, then you will need to select that particular environment while publishing that documentation as [mentioned here](https://learning.postman.com/docs/publishing-your-api/publishing-your-docs/#configuring-your-public-docs).

If this is not the case, please elaborate on how these variables are resolved in the URL to help us assist you further.
