If a APP_WEB_URL is configured, an extra / will be added to the URL when it is opened in Publish-Run, resulting in an error #13463

Closed
opened 2026-02-21 19:12:16 -05:00 by yindo · 2 comments
Owner

Originally created by @fsea on GitHub (Apr 28, 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.3.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

If a APP_WEB_URL is configured, an extra / will be added to the URL when it is opened in Publish-Run, resulting in an error

✔️ Expected Behavior

Open the correct URL

Actual Behavior

Unnecessary / Cause Error

Originally created by @fsea on GitHub (Apr 28, 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.3.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce If a APP_WEB_URL is configured, an extra / will be added to the URL when it is opened in Publish-Run, resulting in an error ### ✔️ Expected Behavior Open the correct URL ### ❌ Actual Behavior Unnecessary / Cause Error
yindo added the 🐞 bug label 2026-02-21 19:12:16 -05:00
yindo closed this issue 2026-02-21 19:12:16 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 28, 2025):

The issue you're experiencing with an extra / being added to the APP_WEB_URL in the Publish-Run feature might be related to how the URL is constructed in the code. However, I couldn't find specific details in the codebase about where this extra / might be appended.

The getUrl function is responsible for constructing URLs in the Publish-Run feature, and it might be worth checking if this function or any related logic is causing the issue [1][2]. Additionally, ensure that the APP_WEB_URL is correctly set in your configuration files, as it is used for frontend references and should not include trailing slashes unless necessary [3][4].

If the problem persists, reviewing the URL construction logic and any middleware or utility functions that might modify URLs globally could help identify the source of the issue.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Apr 28, 2025): <!-- Answer --> The issue you're experiencing with an extra `/` being added to the `APP_WEB_URL` in the Publish-Run feature might be related to how the URL is constructed in the code. However, I couldn't find specific details in the codebase about where this extra `/` might be appended. The `getUrl` function is responsible for constructing URLs in the Publish-Run feature, and it might be worth checking if this function or any related logic is causing the issue <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/workflow/nodes/http/use-config.ts)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/web/service/share.ts)</sup>. Additionally, ensure that the `APP_WEB_URL` is correctly set in your configuration files, as it is used for frontend references and should not include trailing slashes unless necessary <sup>[[3]](https://github.com/langgenius/dify/blob/main/api/configs/feature/__init__.py)</sup><sup>[[4]](https://github.com/langgenius/dify/issues/16019)</sup>. If the problem persists, reviewing the URL construction logic and any middleware or utility functions that might modify URLs globally could help identify the source of the issue. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/a19e0608-ba10-4a5c-be36-72df9f7f6360?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/a19e0608-ba10-4a5c-be36-72df9f7f6360?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/a19e0608-ba10-4a5c-be36-72df9f7f6360?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/a19e0608-ba10-4a5c-be36-72df9f7f6360?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a19e0608-ba10-4a5c-be36-72df9f7f6360?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/a19e0608-ba10-4a5c-be36-72df9f7f6360?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a19e0608-ba10-4a5c-be36-72df9f7f6360?feedback_type=other)</sup>
Author
Owner

@fsea commented on GitHub (Apr 28, 2025):

# WebApp Url,
# used to display WebAPP API Base Url to the front-end.
# If empty, it is the same domain.
# Example: https://app.dify.ai
APP_WEB_URL=https://app.xxx.xxx:8888
@fsea commented on GitHub (Apr 28, 2025): ``` # WebApp Url, # used to display WebAPP API Base Url to the front-end. # If empty, it is the same domain. # Example: https://app.dify.ai APP_WEB_URL=https://app.xxx.xxx:8888 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13463