# Docs URLs have double slashes

**URL:** https://forum.makecode.com/t/docs-urls-have-double-slashes/3178
**Category:** PXT
**Created:** [August 20, 2020, 9:52pm UTC](https://forum.makecode.com/t/docs-urls-have-double-slashes/3178 "2020-08-20T21:52:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jfo8000](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jfo8000/32/1038_2.png) [@jfo8000](https://forum.makecode.com/u/jfo8000)
#### Post date: [August 20, 2020, 9:52pm UTC](https://forum.makecode.com/t/docs-urls-have-double-slashes/3178/1 "2020-08-20T21:52:57Z")

</div>

I am having a bit of trouble with the URLs used for documentation - they emit a double slash, which causes them not to be loaded on my webserver… 😕

I went into the network panel for pxt-sample and saw that it was doing the same thing

[https://microsoft.github.io/pxt-sample/docs//examples/square.md](https://microsoft.github.io/pxt-sample/docs//examples/square.md)

Repro steps:  
Open up [http://microsoft.github.io/pxt-sample/](http://microsoft.github.io/pxt-sample/)  
Open up devtools and switch to the network pane  
Click on Square example  
Result  
You will see a network request for  
[https://microsoft.github.io/pxt-sample/docs//examples/square.md](https://microsoft.github.io/pxt-sample/docs//examples/square.md)

Expected  
No double slashes after the docs  
[https://microsoft.github.io/pxt-sample/docs/examples/square.md](https://microsoft.github.io/pxt-sample/docs/examples/square.md)

This accidentally works on github but not when served statically out of a webserver

I have tried all manner of things to fix this including passing --route in pxt staticpkg.

Suggestions?  
JFo

---

<div class="post-metadata">

### Author: ![jfo8000](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jfo8000/32/1038_2.png) [@jfo8000](https://forum.makecode.com/u/jfo8000)
#### Post date: [August 20, 2020, 9:55pm UTC](https://forum.makecode.com/t/docs-urls-have-double-slashes/3178/2 "2020-08-20T21:55:53Z")

</div>

I even tried being cheeky and making all my tutorials start with …/docs/examples to generate [https://microsoft.github.io/pxt-sample/docs/../docs/examples/square.md](https://microsoft.github.io/pxt-sample/docs/../docs/examples/square.md)

But this broke the internal markdown loading system.

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [August 26, 2020, 3:43am UTC](https://forum.makecode.com/t/docs-urls-have-double-slashes/3178/3 "2020-08-26T03:43:42Z")

</div>

Sorry I missed this post! I noticed this issue while tracking down another bug, and included a fix for it in a PR I just put up: [https://github.com/microsoft/pxt/pull/7422/files#diff-1675c23ac4959ff313bfb49cbd2c224cR152](https://github.com/microsoft/pxt/pull/7422/files#diff-1675c23ac4959ff313bfb49cbd2c224cR152) - only found this post while searching around to see if anyone had noticed this before.

Sorry for the trouble!

---

<div class="post-metadata">

### Author: ![jfo8000](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jfo8000/32/1038_2.png) [@jfo8000](https://forum.makecode.com/u/jfo8000)
#### Post date: [August 26, 2020, 8:22pm UTC](https://forum.makecode.com/t/docs-urls-have-double-slashes/3178/4 "2020-08-26T20:22:51Z")

</div>

No worries. That’s great news! 🙂

I wound up temporarily writing something in my webserver to handle it for now… 😉

JFo
