Update Quant URL rewriting to be more flexible

Created on 18 April 2023, over 1 year ago
Updated 5 March 2024, 9 months ago

Problem/Motivation

The Quant plugin for Drupal has a checkbox to allow for absolute URLs to be rewritten to relative. Every project where we had this feature turned on, had problem of changing visual text for website and email addresses becoming broken.

I would like to make feature suggestion:

1. Offer control to what can be removed (e.g. a text area where we can add strings to be removed). This way we can ensure edit domain links and file references are becoming relative path and avoid touching production domain.

2. Offer a way to prevent rewriting of email addresses. I guess it can be achieved by the option above, where we can omit production public domain if we had a text area, but in some cases, where production domain needs to be removed as well, it would not remove it from a visual text and email addresses.

For example, processing example.com/about-us should be rewritten into example.com/about-us but also info@example.com would stay unchanged (currently becomes info@

Steps to reproduce

Proposed resolution

Add additional configuration fields to support removing specific domains similar to Pathologic.

Remaining tasks

  1. Update code
  2. Test and review
  3. Commit :)

User interface changes

There will be new admin configuration options.

API changes

Data model changes

✨ Feature request
Status

Postponed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024