microbit-foundation/python-editor-v3

Links to API docs containing periods result in a 403

Opened this issue · 1 comments

Bug Description

This works: https://python.microbit.org/v/3/api/gc
This does not: https://python.microbit.org/v/3/api/microbit.audio.SoundEffect (403 forbidden)

Presumably a glitch in the fallback routing that we have to serve the index page. Probably needs fixing outside this repo but tracking here.

The routing function is using the presence of a dot in the final part to avoid sending the HTML of the app on the assumption it's an asset path. We either need a different rule or we change these URLs. As they've never worked that seems to be an option. E.g. s/[.]/-/g ? Or perhaps / ?

https://python.microbit.org/v/3/api/microbit/audio/SoundEffect seems like it makes perfect sense.