Skip to content

Conversation

@HarshJS30
Copy link
Contributor

Description

When running Music Blocks locally, the guide link pointed to ../guide/guide.html, which doesn’t exist in the local environment.
This fix adds logic to detect if the app is running locally (localhost or 127.0.0.1) and uses ../guide/index.html instead.
In production, it retains the original guide link (https://musicblocks.sugarlabs.org/guide/guide.html).

Changes Made

  • Updated GUIDEURL logic in js/turtledefs.js
  • Added a hostname-based check for local vs production environments

Testing

Locally: Verified that clicking the guide link correctly opens /guide/index.html

File Modified

  • js/turtledefs.js

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@walterbender walterbender merged commit 74b88f5 into sugarlabs:master Nov 8, 2025
5 checks passed
@HarshJS30 HarshJS30 deleted the fix-local-guideurl branch November 8, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants