We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e4a578 + 32abe0a commit caeb772Copy full SHA for caeb772
1 file changed
routes/proxy-route.ts
@@ -101,7 +101,7 @@ export function proxyRoute(options: ProxyRouteOptions): HTTPMiddleware {
101
posixNormalize(`${base.pathname}${url}`),
102
);
103
} else if (properties.content.startsWith("http")) {
104
- properties.content = properties.content.replace(target.href, base.href.replace(/\/?$/,'/'));
+ properties.content = properties.content.replace(target.origin, base.href.replace(/\/?$/, ''));
105
}
106
107
0 commit comments