Skip to content

mailpit.svg file not found when webroot is set #441

Closed
@Lyrkan

Description

@Lyrkan

Hi there,

Since version 1.22.2 it seems that the mailpit.svg file cannot be loaded when using a webroot.

Using v1.22.2 without a webroot:

services:
  mailpit:
    image: axllent/mailpit:v1.22.2
    ports:
      - '8025:8025'
$ curl http://127.0.0.1:8025/mailpit.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   width="500"
   height="460"
(...)

Using v1.22.2 with a webroot:

services:
  mailpit:
    image: axllent/mailpit:v1.22.2
    ports:
      - '8025:8025'
    environment:
      MP_WEBROOT: '/mailpit/'
$ curl http://127.0.0.1:8025/mailpit/mailpit.svg
File not found

Using v1.22.1 with a webroot:

services:
  mailpit:
    image: axllent/mailpit:v1.22.1
    ports:
      - '8025:8025'
    environment:
      MP_WEBROOT: '/mailpit/'
$ curl http://127.0.0.1:8025/mailpit/mailpit.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   width="500"
   height="460"
(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions