Skip to content

Commit

Permalink
fix: Use original URL from express
Browse files Browse the repository at this point in the history
  • Loading branch information
Trygve Lie committed Nov 10, 2022
1 parent fbe6f75 commit 10a70c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ export default class PodiumLayout {
middleware() {
return async (req, res, next) => {
const incoming = new HttpIncoming(req, res, res.locals);
incoming.url = `${req.protocol}://${req.get('host')}${req.originalUrl}`;

try {
await this.process(incoming);
// if this is a proxy request then no further work should be done.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@podium/context": "5.0.0-next.6",
"@podium/proxy": "5.0.0-next.7",
"@podium/schemas": "5.0.0-next.6",
"@podium/utils": "5.0.0-next.8",
"@podium/utils": "5.0.0-next.9",
"abslog": "2.4.0",
"lodash.merge": "4.6.2",
"objobj": "1.0.0",
Expand Down

0 comments on commit 10a70c1

Please sign in to comment.