Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Image embeding in bulk mailer fails for relative URLs #319

@jandd

Description

@jandd

Describe the bug

If a relative URL is used in mail texts for the admin mail functionality the request handler crashes.

To Reproduce

Steps to reproduce the behavior:

  1. Login as admin user
  2. Go to /admin/send_email/
  3. Select recipient group
  4. Fill mail text and include an image with a relative ('/media/...') URL
  5. Send test mail
  6. See a 404 error

Expected behavior

Relative URLs are handled properly mail is sent.

Additional context

Log contains [ValueError: unknown url type: '/media/...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions