]> BookStack Code Mirror - bookstack/commit
Fixed canonical redirects on non-root url app instances 2272/head
authorJakub Bouček <redacted>
Tue, 22 Sep 2020 23:22:03 +0000 (01:22 +0200)
committerJakub Bouček <redacted>
Sun, 27 Sep 2020 00:50:37 +0000 (02:50 +0200)
commit1e88e8086f9db19ae7782b12f06e9c47dd772240
tree4fbde0d8e56b17a63565025dfacfd7a17f66b028
parentd48ac0a37d0daafe2ba11255488d9c6233d73fef
Fixed canonical redirects on non-root url app instances

If BookStack instance is deployed to any non-root path, e.g. http://example.com/wiki/,
requests for http://example.com/wiki/shelves/
was redirected to http://example.com/shelves
instead of http://example.com/wiki/shelves

Synced with: https://github.com/laravel/laravel/blob/master/public/.htaccess
public/.htaccess