emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Org links, URLs and HTML export
Date: Tue, 23 Aug 2016 00:28:45 +0200	[thread overview]
Message-ID: <CAFgFV9NviQWR5_y7azD4bsLB3J7h4NR50nP2EfdQj+56nXsH6A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

Hi,

I'm puzzled by the following.
I write a couple of Org file with HTML export in mind, building a site with
several pages, say:
foo.org -> foo.html
bar.org -> bar.html
I want to insert a link in foo.org that will point to bar.html when
exported.

I can insert : [[http:bar.html]]
However, I would like to be able to insert any kind of relative url.
Specifically, there is no mean to insert something
like : [[http:/bar.html]] which is exported to <a href="http:/bar.html"></a>
The corresponding export should be <a href="/bar.html"></a>

Strangely, some browsers grok the former (Chrome), but not all of them
(Safari).
Anyway, only the later is correct.

Is there any way to fix exporting relative urls?

If I'm wrong somewhere, please correct me.

Best regards,

Fabrice

[-- Attachment #2: Type: text/html, Size: 1200 bytes --]

             reply	other threads:[~2016-08-22 22:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-22 22:28 Fabrice Popineau [this message]
2016-08-23 16:30 ` Org links, URLs and HTML export Achim Gratz
2016-08-23 16:57   ` Fabrice Popineau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFgFV9NviQWR5_y7azD4bsLB3J7h4NR50nP2EfdQj+56nXsH6A@mail.gmail.com \
    --to=fabrice.popineau@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).