8000 Conversejs does not load subfolder content from resource directory due to missing slash · Issue #4414 · processone/ejabberd · GitHub
[go: up one dir, main page]

Skip to content

Conversejs does not load subfolder content from resource directory due to missing slash #4414

@Lakrimar

Description

@Lakrimar

Before creating a ticket, please consider if this should fit the discussion forum better.

Environment

  • ejabberd version: 25.07
  • Erlang version: Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 15.2.7
  • OS: Linux (Ubuntu 24.04)
  • Installed from: official deb

Configuration (shortened)

listen:
  -
  port: 5443
    ip: "::"
    module: ejabberd_http
    request_handlers:
      "/bosh": mod_bosh
      "/ws": ejabberd_http_ws
      "/conversejs": mod_conversejs
    tls: true
...
 mod_conversejs:
    conversejs_resources: "/opt/ejabberd/conversejs/current/dist"
    conversejs_options:
      allow_registration: false
      assets_path: "https://@HOST@:5443/conversejs/"
      i18n: "de"
      locked_domain: "@HOST@"
      message_archiving: always
      omemo_default: true
    bosh_service_url: "https://@HOST@:5443/bosh"
    websocket_url: "wss://@HOST@:5443/ws"

Errors from Firefox web developer console

GET
https://server.tld:5443/conversejslocales/de-LC_MESSAGES-converse-po.js
[HTTP/1.1 404 Not Found 17ms]

GET
https://server.tld:5443/conversejsemojis.js
[HTTP/1.1 404 Not Found 19ms]

Bug description

When using mod_converse without the assets_path parameter within the conversejs_options setting set to the proper URL files located in subfolders of the conversejs application aren't loaded due to missing slash. It doesn't matter if it is locally hosted or retrieved from the conversejs web page.

When using the parameter conversejs works fine. I saw some URLs called with two slashes inside, e.g. https://server.tld:5443/conversejs//emojis.js but I'm not able to replicate it anymore.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0