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

Fix/modify relative URLs when inserting entries #41

Open
pinoaffe opened this issue Jan 16, 2021 · 2 comments
Open

Fix/modify relative URLs when inserting entries #41

pinoaffe opened this issue Jan 16, 2021 · 2 comments

Comments

@pinoaffe
Copy link

After using org-web-tools-insert-web-page-as-entry' or org-web-tools-convert-links-to-page-entries' some relative urls within the web page are still relative in the org entry, which means they are now relative to the org file the page was inserted into, rather than to the original webpage.
I think it would be useful if these urls were to be made "absolute", so that they refer to the corresponding online content.
I think this applies to links and references to files such as images.Fix relative links / urls / references

@alphapapa
Copy link
Owner

Yes, that seems like a good idea. Do you have any ideas for the best way to implement it? I don't know if there is any existing code in Emacs/EWW that could help. If not, I guess we could use the dom library to find anchors and adjust them, but we might need to be careful about performance.

@alphapapa
Copy link
Owner

See #46 (review)

@alphapapa alphapapa added this to the Future milestone Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants