ObsidianCustomFrames
ObsidianCustomFrames copied to clipboard
Cannot use urlSuffix with paths
I think the issue is in this code in frame.ts:
if (suffix.pathname !== "/") {
src.pathname += suffix.pathname;
}
if urlSuffix contains a path (e.g.: foo/bar/page) then by simply concatenating strings, you wnd up with a double forward slash:
https://www.website.com//foo/bar/page
which will lead to 404. I guess it should be handled by properly appending path avoiding slashes duplications.
Hi! This should already be fixed by the open pull request #151, which will hopefully be merged soon! :)
@Ellpeck thank you so much. I actually ended doing that fix in my local main.js :-)