On 2014-12-03 15:05, Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Hello,
>
> Alan Schmitt <alan.schm...@polytechnique.org> writes:
>
>> I'm writing a web site in org mode where some results are made available
>> in an org file. If I put a fully qualified http link to that file, all
>> goes well, but if I use a relative link, then the link is done to an
>> html file instead.
>>
>> This is to be expected according to the documentation
>> (http://orgmode.org/manual/Links-in-HTML-export.html):
>>
>> ,----
>> | Links to other .org files will be translated into HTML links under the
>> | assumption that an HTML version also exists of the linked file, at the
>> | same relative path.
>> `----
>>  
>> What I don't see is how to disable this, and have a link to the real org
>> file.
>>
>> Is there a way?
>
> See `org-html-link-org-files-as-html'.

Thank you. Here is a manual patch to mention this option as that point.

Best,

Alan

From 09b34f73ad042194efbed8969a1b7fd9010b2bee Mon Sep 17 00:00:00 2001
From: Alan Schmitt <alan.schm...@polytechnique.org>
Date: Wed, 3 Dec 2014 15:40:50 +0100
Subject: [PATCH] org.texi: Document `org-html-link-org-files-as-html'

* doc/org.texi: Document `org-html-link-org-files-as-html' in the
"Links in HTML export" section.
---
 doc/org.texi | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 15830fc..5316ee6 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -11331,9 +11331,10 @@ targets}).  Links to external files will still work if the target file is on
 the same @i{relative} path as the published Org file.  Links to other
 @file{.org} files will be translated into HTML links under the assumption
 that an HTML version also exists of the linked file, at the same relative
-path.  @samp{id:} links can then be used to jump to specific entries across
-files.  For information related to linking files while publishing them to a
-publishing directory see @ref{Publishing links}.
+path; setting @code{org-html-link-org-files-as-html} to @code{nil} disables
+this translation.  @samp{id:} links can then be used to jump to specific
+entries across files.  For information related to linking files while
+publishing them to a publishing directory see @ref{Publishing links}.
 
 If you want to specify attributes for links, you can do so using a special
 @code{#+ATTR_HTML} line to define attributes that will be added to the
-- 
2.2.0


-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

Attachment: signature.asc
Description: PGP signature

Reply via email to