Skip to content

Links to API docs containing periods result in a 403 #1099

Open

Description

@microbit-matt-hillsdon

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.

Activity

  1. microbit-matt-hillsdon commented on Feb 6, 2023

    @microbit-matt-hillsdon
    CollaboratorAuthor

    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.

  2. microbit-matt-hillsdon commented on Oct 19, 2026

    @microbit-matt-hillsdon
    CollaboratorAuthor

    This was fixed somewhere along the way (without introducing slashes). Closing.

  3. microbit-matt-hillsdon commented on Oct 20, 2026

    @microbit-matt-hillsdon
    CollaboratorAuthor

    Totally mistaken in closing this. Needs a hard refresh to see. Reopening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions