[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] why prepend "file://" to abs paths in html output?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] why prepend "file://" to abs paths in html output? |
Date: |
Sat, 08 Jul 2017 12:33:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Matt Price <address@hidden> writes:
> in org-html-link local links of the form
>
> "/some/path/to/file"
>
> are rewritten as
>
> "file:///some/path/to/file".
>
> This makes it difficult to write root-relative URL's in the way that one
> might expect to be able to (so that export produces links like
>
> <img src="/static/images/unicorn.jpg"/>
>
> Is this really the most desirable behaviour? In html export, at least, I
> would think most users would want to allow links of the kind I described.
> But this seems like a conscious design decision; cf. these lines from
> org-html-link:
>
> ;; If file path is absolute, prepend it with protocol
> ;; component - "file://".
> (cond
> ((file-name-absolute-p raw-path)
> (setq raw-path (org-export-file-uri raw-path)))
> ((and home use-abs-url)
> (setq raw-path (concat (file-name-as-directory home) raw-path))))
>
> I'm wondering whether a user oculd at least set a defcustom to control this
> behaviour.
Let me ask this the other way: is there any situation where "file://"
prefix is desirable?
Regards,
--
Nicolas Goaziou
- [O] why prepend "file://" to abs paths in html output?, Matt Price, 2017/07/07
- Re: [O] why prepend "file://" to abs paths in html output?,
Nicolas Goaziou <=
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/08
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/08
- Re: [O] why prepend "file://" to abs paths in html output?, Carsten Dominik, 2017/07/08
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/08
- Re: [O] why prepend "file://" to abs paths in html output?, Tim Cross, 2017/07/08
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/09
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Brett Viren, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/10