Skip to content

Commit 8a4d8c7

Browse files
committed
fix: revert "fix: issue with superfluous -dot-"
This reverts commit 39cb318.
1 parent 525fad6 commit 8a4d8c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/webui.ts

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

0 commit comments

Comments
 (0)