Khalid Rafi <[email protected]> writes: > I made the original FR. I use AstroJS in my blog. It requires using > relative URLs to link between pages. Details here: > https://docs.astro.build/en/basics/astro-pages/#link-between-pages. > > I think, it would be too complicated to have such links as valid links > Org buffers as you'd need to implement the routing logic of the web > framework (in this case AstroJS) which varies across users. You'd need to > find how a relative URL > maps to user's content directory structure. For example, a user can have a URL > in his site like https://a.b.com/articles/someawesomearticle, and that > may be located in src/content/someawesomearticle under his site project root. > Whereas another user > can use a URL as simple as https://a.b.com/someawesomearticle, but have > his content source in src/content/articles/someawesomearticle. The URL > structure is decided by how the user implemented routing logic of his > website under pages/ subdirectory.
I do not see much problem. Similar to how we prepend custom header according to #+HTML_LINK_HOME: we can replace that header. For example, #+HTML_LINK_HOME: https://www.example.com [[https://www.example.com/page/subpage/foo.html]] can be automatically exported to <a href="/page/subpage/foo.html"> ... </a> That way, we will even keep the actual Org links inside the buffer working. My major concern is that the patch implemented this feature for all export backends, not just html. That implied that it should be useful beyond html export - very different from what you describe. > And, regarding the other issues you mentioned, I never used those Org > mode features. So, I have no idea about them. Maybe with a bit more > explanation, I can help. Thank you. I mostly listed other part of Org that are broken when using the proposed patch (not feature, but the specific implementation proposed in the patch). -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
