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
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [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
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
# 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