Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [1.8.0.1]: Export as RAW HTML Documents - links do not account for relative folder structure #529

Open
ACGarland opened this issue Oct 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ACGarland
Copy link

ACGarland commented Oct 11, 2024

What happened?

What happened?

When I exported a single folder with subfolders using RAW HTML Documents export mode, links between sibling files in subfolders--which work fine in Obsidian markdown--use the full path from the top of the folder hierarchy and so cannot be found.

What did I expect to happen?

I expected raw format to generate links between sibling files to work--without writing all links as if they originated from a file at the top of the folder structure.

Reproduction

  • Create a nested folder structure in obsidian such as: test/folder-a/folder-b/
  • Create two markdown notes within folder-b which link to each other: sibling-a.md and sibling-b.md
  • Export the test folder using RAW HTML Documents export mode
  • Open sibling-a.html in a web browser and click the link to sibling-b -- nothing happens
  • Examine the link within the html: <a class="internal-link" data-href="sibling-b.md" href="test/folder-a/folder-b/sibling-b.html" target="_self" rel="noopener">sibling-a</a>

Notice that the link incorporates the full path from the top--even though the file being linked to is within the same folder-b location.

Last Working Version

No response

Version

1.8.0.1

Operating System

macOS Monterey 12.7.6

Obsidian Version

v1.6.7/v1.6.7

Which browsers can you reproduce this in?

Firefox, Chrome, Safari

Relevant log output

N/A

Additional Info

N/A

@ACGarland ACGarland added the bug Something isn't working label Oct 11, 2024
@github-actions github-actions bot changed the title [Bug]: Export as RAW HTML Documents - links do not account for relative folder structure [Bug] [1.8.0.1]: Export as RAW HTML Documents - links do not account for relative folder structure Oct 11, 2024
@KosmosisDire
Copy link
Owner

KosmosisDire commented Nov 20, 2024

Hey, thanks for the report, can you test this in the beta version for me? There are instructions for using the beta version in the readme. You would use the Local website export in place of Raw HTML Documents

@ACGarland
Copy link
Author

Hello - I'm pleased to report the example case I described is now fixed with the latest beta. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants