Absolute URLs to Relative Path

Component ID

1329864

Component name

Absolute URLs to Relative Path

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module provides an input format filter that is the opposite of the Relative Path to Absolute URLs module.

Why would you want this? The most common use case is when working in multiple environments with different URLs, like dev/staging/production. When syncing your production database with a test server, absolute URLs will redirect you to the wrong site. Also, if you're changing domain names, this will help prevent incorrect URLs.