Skip to content

Commit 39cb318

Browse files
committed
fix: issue with superfluous -dot-
1 parent 6dcb2d3 commit 39cb318

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/webui.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,9 @@ export function configure(app: express.Application) {
136136
originalUrl.host.includes(defaultHostnamePart) &&
137137
process.env.FILESET_BASE_URL
138138
) {
139-
originalUrl.host = originalUrl.host.replace(
140-
defaultHostnamePart,
141-
process.env.FILESET_BASE_URL
142-
);
139+
originalUrl.host = originalUrl.host
140+
.replace(defaultHostnamePart, process.env.FILESET_BASE_URL)
141+
.replace('-dot-', '.');
143142
}
144143
// Verify the `?returnTo` and `state` parameters are not external URLs.
145144
// Subdomains (i.e. staging environment URLs) are permitted, as they are

0 commit comments

Comments
 (0)