Skip to content

Commit 10a70c1

Browse files
author
Trygve Lie
committedNov 10, 2022
fix: Use original URL from express
1 parent fbe6f75 commit 10a70c1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎lib/layout.js

+2
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ export default class PodiumLayout {
226226
middleware() {
227227
return async (req, res, next) => {
228228
const incoming = new HttpIncoming(req, res, res.locals);
229+
incoming.url = `${req.protocol}://${req.get('host')}${req.originalUrl}`;
230+
229231
try {
230232
await this.process(incoming);
231233
// if this is a proxy request then no further work should be done.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@podium/context": "5.0.0-next.6",
4242
"@podium/proxy": "5.0.0-next.7",
4343
"@podium/schemas": "5.0.0-next.6",
44-
"@podium/utils": "5.0.0-next.8",
44+
"@podium/utils": "5.0.0-next.9",
4545
"abslog": "2.4.0",
4646
"lodash.merge": "4.6.2",
4747
"objobj": "1.0.0",

0 commit comments

Comments
 (0)
Please sign in to comment.