Skip to content

Define API query parameter regression #8299

@oliviertassinari

Description

@oliviertassinari

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

The query param described in https://codesandbox.io/docs/learn/sandboxes/cli-api#supported-parameters doesn't seem to work.

How has this issue affected you? What are you trying to accomplish?

I noticed because in https://mui.com/material-ui/react-switch/#color opening a codesandbox does no longer set the file in focus. The DX could be better

Actual:

Screenshot 2024-01-28 at 17 50 35

Expected:

Screenshot 2024-01-28 at 17 50 40

To Reproduce

https://codesandbox.io/p/sandbox/define-api-get-request-forked-v5zl4m?file=%2Findex.js%3A16%2C5

taken from https://codesandbox.io/docs/learn/sandboxes/cli-api#get-request. In practice, we use the POST API but I assume the bug is shared, as it seems to happen during an internal codesandbox redirection.

Your Environment

Software Name/Version
Сodesandbox
Browser
Operating System

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