Add missing alias (#4574)

This commit is contained in:
Peter Hedenskog 2025-12-17 15:56:28 +01:00 committed by GitHub
parent 3711c21b76
commit da483ff821
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function normalizeFsPath(input) {
return n;
}
export function pathToFolder(input, options) {
export function pathToFolder(input, options, alias) {
if (options.useSameDir) return '';
let hostname = '';
@ -53,6 +53,8 @@ export function pathToFolder(input, options) {
if (options.urlMetaData && options.urlMetaData[input]) {
pathSegments.push(options.urlMetaData[input]);
} else if (alias) {
pathSegments.push(alias);
} else {
const parts = isUrl
? pathname.split('/').filter(Boolean)