Closed thautwarm closed 2 months ago
redirects plugin not working when --location is specified at the build time, if the location is not a root url.
redirects
--location
For example, my blog url is https://thautwarm.github.io/Site-33/ instead of https://thautwarm.github.io/, then the redirection fails to resolve urls.
https://thautwarm.github.io/Site-33/
https://thautwarm.github.io/
No issue yet. I found the case by
fmt
CHANGELOG.md
Returning from & to instead of the mixed from & newUrl looks more consistency.
from
to
newUrl
Looks great. Thank you!
Description
redirects
plugin not working when--location
is specified at the build time, if the location is not a root url.For example, my blog url is
https://thautwarm.github.io/Site-33/
instead ofhttps://thautwarm.github.io/
, then the redirection fails to resolve urls.Related Issues
No issue yet. I found the case by
Check List
fmt
to fix the code format before commit.CHANGELOG.md
.