Skip to content

Commit 054e002

Browse files
fix(qwik-nx): get "url" correctly in remote-mfe template (#139)
1 parent d82dad4 commit 054e002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/qwik-nx/src/generators/host/files/src/components/remote-mfe/remote-mfe.tsx.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const RemoteMfe = component$(({ remote }: RemoteMfeProps) => {
2222
{async (stream) => {
2323
// constructing the url by swapping the origin of an actual page's origin with the one from the config
2424
// this behavior is expected to be adjusted to feet the specifics of the use case
25-
const url = loc.href.replace(new URL(loc.href).origin, remotesConfig[remote]);
25+
const url = loc.url.href.replace(new URL(loc.url.href).origin, remotesConfig[remote]);
2626
const init: RequestInit = {
2727
headers: { accept: 'text/html' },
2828
};

0 commit comments

Comments
 (0)