Skip to content

Allow for multi-context sites and media sources #164

Open

Description

@GarretOverstreet

Feature request

Summary

Currently, images and linked files use a relative path when selecting from the browser assuming to be the default web context. It does not work, however, with sub-domains / contexts (e.g. blog.example.com) without moving / duplicating files to a sub-folder or specifying a full-path in the source by manually pre-pending the text in after selecting it in the media browser.

Why is it needed?

Some sites use images across multiple contexts or domains / sub-domains, and it adds an extra step.

Suggested solution(s)

Add a system setting to specify the base path for files or use media source's actual path in the editor's preview.

Activity

  1. matdave commented on Aug 1, 2025

    @matdave
    Member

    It currently relies on whatever the media source's baseUrl is. Have you checked your Media Source's baseUrl setting to ensure it is properly configured?

  2. GarretOverstreet commented on Aug 2, 2025

    @GarretOverstreet
    Author

    I have set the base URL for the context setting, and tried different media sources, but it appears to revert to the subdomain, regardless of those settings. The base URL will be https://www.example.com/, but the preview in the WYSIWYG editor points to https://blog.example.com/ regardless of media source base or context site setting using a relative path. The only way around it is by using the full path with the TLD in the source field.

  3. matdave commented on Aug 21, 2025

    @matdave
    Member

    The image is adding a domain? Can you post a screenshot or share how your media source is set up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions