forked from 200ok-ch/organice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rendering of file: links (200ok-ch#311)
The new logic for rendering file: links introduced by 200ok-ch#307 had a number of issues: - It created links for absolute paths, which does not make sense since there is no fully general mapping between the filesystem and any of the sync backends. - It created links for relative paths pointing outside the backend (e.g. ../../../../foo.org), - It used <a href="..."> rather than <Link to=...>, which meant the PWA treated them as external links. So create a <Link> for relative file: paths pointing to .org files, don't link other file: paths, and render all other links with <a ...> as before. Fixes 200ok-ch#311.
- Loading branch information
Adam Spiers
committed
Jun 2, 2020
1 parent
ab3be82
commit 924a3a1
Showing
6 changed files
with
65 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters