When opening workflow type tools, the url is not prefixed with app_base_url. #15391

Closed
opened 2026-02-21 19:21:31 -05:00 by yindo · 3 comments
Owner

Originally created by @hangboss1761 on GitHub (Jul 15, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.6.0

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

  • Tools - > Workflow -> Click some tool -> Click Open in Studio.

If the problem is confirmed, I am happy to submit PR

✔️ Expected Behavior

The url of the jump includes app_base_url (if it is not empty)

Actual Behavior

No app_base_url included

Originally created by @hangboss1761 on GitHub (Jul 15, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.6.0 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce - Tools - > Workflow -> Click some tool -> Click Open in Studio. If the problem is confirmed, I am happy to submit PR ### ✔️ Expected Behavior The url of the jump includes app_base_url (if it is not empty) ### ❌ Actual Behavior No app_base_url included
yindo added the 🤔 cant-reproduce label 2026-02-21 19:21:31 -05:00
yindo closed this issue 2026-02-21 19:21:31 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 15, 2025):

Hi @hangboss1761! I'm Dosu and I’m helping the dify team.

This is a confirmed bug: the "Open in Studio" URL for workflow tools does not include app_base_url, which causes issues in self-hosted or custom domain setups. The frontend currently builds this URL using only a basePath (which defaults to empty) and the workflow_app_id, without referencing app_base_url from the backend response. In contrast, regular app URLs are correctly prefixed with app_base_url, as seen in components like AppCard, because the backend includes this value in the app's site config payload (detail.tsx, appCard.tsx).

To fix this, the backend should add app_base_url to the workflow tool API response (following the pattern in app_fields.py), and the frontend should use this value to prefix workflow tool URLs in the "Open in Studio" action. There’s currently no workaround or config option to address this without a code change.

If you want to submit a PR, you’ll need to update both the backend (to include app_base_url in the workflow tool API response) and the frontend (to use it when building the Studio URL), mirroring how it’s done for regular app URLs. Let me know if you want more detailed pointers to the relevant files or logic!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Jul 15, 2025): <!-- Greeting --> Hi @hangboss1761! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> This is a confirmed bug: the "Open in Studio" URL for workflow tools does not include app_base_url, which causes issues in self-hosted or custom domain setups. The frontend currently builds this URL using only a basePath (which defaults to empty) and the workflow_app_id, without referencing app_base_url from the backend response. In contrast, regular app URLs are correctly prefixed with app_base_url, as seen in components like AppCard, because the backend includes this value in the app's site config payload ([detail.tsx](https://github.com/langgenius/dify/blob/14f79ee6522d056e5fe602e2e27effa3ab68516d/web/app/components/tools/provider/detail.tsx), [appCard.tsx](https://github.com/langgenius/dify/blob/14f79ee6522d056e5fe602e2e27effa3ab68516d/web/app/components/app/overview/appCard.tsx)). To fix this, the backend should add app_base_url to the workflow tool API response (following the pattern in [app_fields.py](https://github.com/langgenius/dify/blob/14f79ee6522d056e5fe602e2e27effa3ab68516d/api/fields/app_fields.py)), and the frontend should use this value to prefix workflow tool URLs in the "Open in Studio" action. There’s currently no workaround or config option to address this without a code change. If you want to submit a PR, you’ll need to update both the backend (to include app_base_url in the workflow tool API response) and the frontend (to use it when building the Studio URL), mirroring how it’s done for regular app URLs. Let me know if you want more detailed pointers to the relevant files or logic! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/ff517bfc-f3db-4f76-b117-828d0aecc173?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/ff517bfc-f3db-4f76-b117-828d0aecc173?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/ff517bfc-f3db-4f76-b117-828d0aecc173?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/ff517bfc-f3db-4f76-b117-828d0aecc173?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ff517bfc-f3db-4f76-b117-828d0aecc173?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/ff517bfc-f3db-4f76-b117-828d0aecc173?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ff517bfc-f3db-4f76-b117-828d0aecc173?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/22431)
Author
Owner

@crazywoola commented on GitHub (Jul 15, 2025):

https://github.com/user-attachments/assets/c282b2ba-3c0f-4baa-bd28-34d1b09798cb

Can not reproduce, please check the environment settings regarding the URL.

@crazywoola commented on GitHub (Jul 15, 2025): https://github.com/user-attachments/assets/c282b2ba-3c0f-4baa-bd28-34d1b09798cb Can not reproduce, please check the environment settings regarding the URL.
Author
Owner

@hangboss1761 commented on GitHub (Jul 15, 2025):

Tools.-.Dify.7-15-2025.19-30-44.mp4
Can not reproduce, please check the environment settings regarding the URL.

My bad, basePath is enough.

@hangboss1761 commented on GitHub (Jul 15, 2025): > Tools.-.Dify.7-15-2025.19-30-44.mp4 > Can not reproduce, please check the environment settings regarding the URL. My bad, basePath is enough.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#15391