lumeland / lume

🔥 Static site generator for Deno 🦕
https://lume.land
MIT License
1.76k stars 74 forks source link

fix `redirects` plugin for html output #606

Closed thautwarm closed 2 months ago

thautwarm commented 2 months ago

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 of https://thautwarm.github.io/, then the redirection fails to resolve urls.

Related Issues

No issue yet. I found the case by

Check List

thautwarm commented 2 months ago

Returning from & to instead of the mixed from & newUrl looks more consistency.

oscarotero commented 2 months ago

Looks great. Thank you!