Skip to content

[16.0][ADD] web_editor_clean_url#1162

Open
hbrunn wants to merge 1 commit intoOCA:16.0from
hbrunn:16.0-web_editor_clean_url
Open

[16.0][ADD] web_editor_clean_url#1162
hbrunn wants to merge 1 commit intoOCA:16.0from
hbrunn:16.0-web_editor_clean_url

Conversation

@hbrunn
Copy link
Member

@hbrunn hbrunn commented Feb 10, 2026

This module allows administrators to configure cleanup rules for links
inserted by their users, as inexperienced people tend to just copy&paste
whatever they find in their address bar, which might contain data you do
not want to see published on your website, be it tracking tokens or
session identifiers.

Configuration

You find the configuration in Website / Configuration / Clean URLs.

For every configuration, you can fill in:

Hostname: allowing to restrict this configuration to some domain

Remove Query Parameter: removes parameters from the URL. Separate
with comma

Replace Regex: replaces a whole portion of the url

Substitution: if the regex contains brackets, you can refer to the
matched content with \1, \2 etc

Usage

To use this module, you need to:

  1. Review the configuration
  2. Edit a website page, insert links and observe they are transformed as
    configured after saving

@hbrunn hbrunn force-pushed the 16.0-web_editor_clean_url branch 6 times, most recently from 056bcd2 to 67f8174 Compare February 11, 2026 15:51
@hbrunn hbrunn force-pushed the 16.0-web_editor_clean_url branch from 67f8174 to eb0ccb8 Compare February 11, 2026 16:46
Copy link

@simahawk simahawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Only code review 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants