Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mcansh authored Nov 11, 2024
1 parent 9f2ad4a commit f10e6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-fastify/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function createRemixHeaders(
export function getUrl<Server extends HttpServer>(
request: FastifyRequest<RouteGenericInterface, Server>,
): string {
let origin = `${request.protocol}://${request.hostname}`;
let origin = `${request.protocol}://${request.host}`;
// Use `request.originalUrl` so Remix is aware of the full path
let url = `${origin}${request.originalUrl}`;
return url;
Expand Down

0 comments on commit f10e6c7

Please sign in to comment.