Download the PHP package huoxin/relative-url without Composer
On this page you can find all versions of the php package huoxin/relative-url. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package relative-url
Relative Url
简体中文
A Flarum extension that converts internal URLs to relative paths for multi-domain support.
The Problem
When your Flarum forum setup multi-domain by editing config.php:
If an user post links with absolute URLs:
Another user on forum2.org clicks this link, they're redirected to forum1.org, losing their session and cookies.
The Solution
This extension automatically converts internal URLs to relative paths:
https://forum1.org/d/123→/d/123https://forum2.org/u/username→/u/username
Users stay on their current domain when clicking internal links.
Features
- ✅ Converts regular links in post content
- ✅ Converts mention URLs (workaround for https://github.com/flarum/framework/issues/4226 )
Installation
Install with composer:
Configuration
- Go to Admin → Extensions → Relative Url
- Add your internal domains (one per line):
Updating
Links
All versions of relative-url with dependencies
PHP Build Version
Package Version
Requires
flarum/core Version
^2.0.0-beta
The package huoxin/relative-url contains the following files
Loading the files please wait ...