Skip to content

fix: preserve base path for Heidi tips - #9916

Open
motodriver wants to merge 1 commit into
HumanSignal:developfrom
motodriver:fix/heidi-tips-base-path
Open

fix: preserve base path for Heidi tips#9916
motodriver wants to merge 1 commit into
HumanSignal:developfrom
motodriver:fix/heidi-tips-base-path

Conversation

@motodriver

Copy link
Copy Markdown

Reason for change

The Heidi Tips request uses a root-relative /heidi-tips URL. When Label Studio is hosted below a path prefix, the browser sends the request to the domain root instead of the configured application path.

Solution

  • build the Heidi Tips endpoint with the existing absoluteURL helper
  • retain the trailing slash used by the Django route
  • cover root and non-root deployments with focused tests

Testing

  • bun test --dom apps/labelstudio/src/components/HeidiTips/utils.test.ts
  • 2 passed, 0 failed
  • Biome passed with only the existing document.cookie warning
  • git diff --check passed

Acceptance criteria

  • When hosted at the root, Heidi Tips requests /heidi-tips/.
  • When hosted below /basepath, Heidi Tips requests /basepath/heidi-tips/.

Risk

Low. The change uses the existing application URL helper and only affects the endpoint URL construction.

Fixes the Heidi Tips sub-path case in #9652.

@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

👷 Deploy request for heartex-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bf20397

@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

👷 Deploy request for label-studio-docs-new-theme pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bf20397

@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit bf20397
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6a952d0e526a4a0008a1177b
😎 Deploy Preview https://deploy-preview-9916--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit bf20397
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6a952d0e103682000829f6cb
😎 Deploy Preview https://deploy-preview-9916--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the fix label Aug 31, 2026
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