Skip to content

feat: enable deep-link navigation from ExperimentSummary enter button#35

Merged
gushishang merged 1 commit into
mainfrom
codex/enable-experiment-button-with-redirects
May 5, 2026
Merged

feat: enable deep-link navigation from ExperimentSummary enter button#35
gushishang merged 1 commit into
mainfrom
codex/enable-experiment-button-with-redirects

Conversation

@gushishang

Copy link
Copy Markdown
Member

Motivation

  • Make the 进入实验 button actionable so users can open the native Physics Lab via deep links for both experiments and discussions.

Description

  • Removed the disabled attribute from the entry button in src/views/ExperimentSummary.vue and added @click="goToExperiment" to the n-button element.
  • Added a new goToExperiment function that maps route.params.category to either experiment or discussion, builds a physics://chinese/<type>/<id> URL, and navigates using window.location.href.

Testing

  • No automated tests were run for this change; the change was committed locally (git commit) and the file modification was verified in the working tree.

Codex Task

@gushishang gushishang merged commit e35dcdb into main May 5, 2026
1 check passed
@gushishang gushishang deleted the codex/enable-experiment-button-with-redirects branch May 5, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant