Add the resource prefix when setting basePath #11040

Closed
opened 2026-02-21 18:54:12 -05:00 by yindo · 0 comments
Owner

Originally created by @llf123148 on GitHub (Mar 14, 2025).

Originally assigned to: @iamjoel on GitHub.

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Steps to reproduce

  1. Configure the basePath value in the next.config.js file
  2. Deploy the project
  3. Access page address:【Create a knowledge base】
    Image
  4. 404 is not accessible

Expected Behavior

When I set the value of basePath, I can use the value of basePath as a prefix when I access the path address and image resources, otherwise the resources will not be accessed correctly.

Actual Behavior

404 is not accessible
Image

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @llf123148 on GitHub (Mar 14, 2025). Originally assigned to: @iamjoel on GitHub. ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. ## Steps to reproduce 1. Configure the basePath value in the next.config.js file 2. Deploy the project 3. Access page address:【Create a knowledge base】 ![Image](https://github.com/user-attachments/assets/d2f83d80-e81e-4455-b009-9caf158b775d) 4. 404 is not accessible ## Expected Behavior When I set the value of basePath, I can use the value of basePath as a prefix when I access the path address and image resources, otherwise the resources will not be accessed correctly. ## Actual Behavior 404 is not accessible ![Image](https://github.com/user-attachments/assets/be003d71-7063-4bf4-bc69-f1d15c6234c0) ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo added the 🐞 bug label 2026-02-21 18:54:12 -05:00
yindo closed this issue 2026-02-21 18:54:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11040