humanmade / humanmade/Mercator-Redirect

Legacy redirects on sub-directory installs include the site slug.

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
14
Forks
10
PR merge metrics
No merged PRs in 30d

Description

When enabling legacy redirects on a sub-directory install, the redirect goes to the alias domain + path.

```
Alias: customdomain.com
Site URL: msinstall.com/sub-site/
Redirects to: customdomain.com/sub-site/
```

The issue appears to come from these lines, as the site path ought to be excluded on sub-directory installs.

https://github.com/humanmade/Mercator-Redirect/blob/8f85efdbd6b207791ae82194403fdbdfef944b0e/redirect.php#L143-L147

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.