Cleanup and federation prep
This commit is contained in:
@@ -3,7 +3,7 @@ export function resolvePath(
|
||||
pathToResolve: string,
|
||||
fullUrl = false,
|
||||
): string {
|
||||
if (currentPage.startsWith("!") && !pathToResolve.startsWith("!")) {
|
||||
if (isFederationPath(currentPage) && !isFederationPath(pathToResolve)) {
|
||||
let domainPart = currentPage.split("/")[0];
|
||||
if (fullUrl) {
|
||||
domainPart = domainPart.substring(1);
|
||||
@@ -18,3 +18,7 @@ export function resolvePath(
|
||||
return pathToResolve;
|
||||
}
|
||||
}
|
||||
|
||||
export function isFederationPath(path: string) {
|
||||
return path.startsWith("!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user