# How to add a url to a new html file

**URL:** <https://discuss.openedx.org/t/how-to-add-a-url-to-a-new-html-file/2855>\
**Category:** Development\
**Created:** [July 30, 2020, 7:21pm UTC](https://discuss.openedx.org/t/how-to-add-a-url-to-a-new-html-file/2855 "2020-07-30T19:21:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Classen](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@Classen](https://discuss.openedx.org/u/Classen)\
**Post date:** [July 30, 2020, 7:21pm UTC](https://discuss.openedx.org/t/how-to-add-a-url-to-a-new-html-file/2855/1 "2020-07-30T19:21:18Z")

</div>

Hey, I am new to Xblocks, but used Django before. I want to ask is, how we can add URL to the new HTML file in the student\_view of Xblocks. As suppose, we have myxblocks.html and new.html file in the static folder inside the myxblock directory, and I want to go to new.html, by clicking a button which will be on myxblocks.html ( in same folder ). How to add the url of the new.html.  
Thanks a lot !

---

<div class="post-metadata">

**Author:** ![xitij2000](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/xitij2000/32/141_2.png) [@xitij2000](https://discuss.openedx.org/u/xitij2000)\
**Post date:** [August 4, 2020, 3:56pm UTC](https://discuss.openedx.org/t/how-to-add-a-url-to-a-new-html-file/2855/2 "2020-08-04T15:56:15Z")

</div>

I’m not exactly sure what you’re trying to achieve here. An Xblock will generally only have one view, i.e. a single HTML page that a user sees.

If your XBLock needs multiple complex views, you can use Javascript to load template pages on the fly.
