botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
78 stars 87 forks source link

The avatarUrl and coverPicture not showing when botpress is mounted in subfolder #1667

Open charlyR opened 2 years ago

charlyR commented 2 years ago

Describe the bug When opening the webchat, the avatar image path is wrong.

To Reproduce

  1. Run botpress in a domain subfolder for example /botpress
  2. Edit any bot and add the avatar and cover pictures.
  3. Open webchat
  4. the image looks like a broken link.

Expected behavior View the avatar image in the webchat page

Additional context The webchat client does not add the subfolder path to the image and it looks like a broken link. The webchat client must add the ROOT subfolder to the image path.

bot.config.json "avatarUrl": "/api/v1/bots/gg_main/media/fapsksa4n17mmh87ode7-gg_avatar.jpg", "coverPictureUrl": "/api/v1/bots/gg_main/media/qombnh7j408knw975zy7-gg_portada.png"