Spaces:
Running
Running
File size: 706 Bytes
c592d77 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "normalizeAppPageRequestUrl", {
enumerable: true,
get: function() {
return normalizeAppPageRequestUrl;
}
});
const _url = require("../../../lib/url");
const _formaturl = require("../../../shared/lib/router/utils/format-url");
function normalizeAppPageRequestUrl(req, pathname) {
if (!req.url) {
return;
}
const normalizedUrl = (0, _url.parseReqUrl)(req.url);
if (!normalizedUrl) {
return;
}
normalizedUrl.pathname = pathname;
req.url = (0, _formaturl.formatUrl)(normalizedUrl);
}
//# sourceMappingURL=normalize-request-url.js.map |