[[redirects]]
from = "/librepad/*"
to = "https://pensive-lalande-16cf57.netlify.app/:splat"
status = 200
headers = {Link = '<https://rishav.io/librepad/>; rel="canonical"'}
The idea is to serve the 2nd Netflify site on a subpath of the first. This setup works fine. However, I see that Netfify adds a Link header on the 2nd site. I don’t understand why? Trying to manually set the Link header also does not work.
I think you may be a bit confused about what the header rule there does.
When you proxy redirect from a site to another, we SEND that header to the “another” site - so you are in essnence setting an HTTP REQUEST (not response) header, to the site elated-hugle-8a8255 in the request. This won’t have any effect on the output from that remote site, in most cases.
Could you set the custom header on the pensive-lalande site, using our custom headers feature? That should work better:
…since our system will put that response on the proxy response, which should get passed on from the main site.
Could I know the reason why the Link header is set in the first place? That behavior is not documented anywhere as far as I can tell. I genuinely see what scenario it would be useful in.