emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Mismatch in url escaping between org and exported html
@ 2014-02-09 20:56 Mark Janssen
  2014-02-09 22:07 ` Mark Janssen
  2014-02-10 11:06 ` Bastien
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Janssen @ 2014-02-09 20:56 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello list,

If I insert a http:// link containing question marks, the verbatim link
being inserted in the org document has the question mark escaped.

For example the link

http://mpcjanssen.nl/fossil/simpletask/tktview?name=ee0504fc8c

is actually inserted as:

[[http://mpcjanssen.nl/fossil/simpletask/tktview?name%3Dee0504fc8c][bug]]

This works fine when clicking the link from emacs, but breaks when
exporting to html. Then it is exported as:

<a href="http://mpcjanssen.nl/fossil/simpletask/tktview?name%3Dee0504fc8c
">bug</a>

This will not work.

Is this an error in the html exporter or in org mode itself? I would expect
the link to be included verbatim in the .org file.

Regards,
Mark

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Mismatch in url escaping between org and exported html
@ 2014-02-10 10:59 Mark Janssen
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Janssen @ 2014-02-10 10:59 UTC (permalink / raw)
  To: emacs-orgmode

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

On Sun, Feb 9, 2014 at 11:07 PM, Mark Janssen <mpc.janssen@gmail.com> wrote:

>
>
>>
> Seems (setq org-url-hexify-p nil) will give me the required behavior.
>
> Mark
>
>
This didn't work, so I investigated a bit further. Because the = sign is
included in org-link-escape-chars, the org-url-hexify-p value will not make
anu difference.

So the problem is still that equals signs are hexified in org-links.
Reading =org.el= and seeing the =org-link-escape-chars= constant this seems
to be expected behavior.

So I think the issue is that the html exporter doesn't unhexify the equals
sign in the link. As a result the link in the html doesn't work.

e.g.

The link:

http://test/test?name=me

Is translated to:

http://test/test?name%3Dme

In the org file

And that link is also included in the HTML where I would have expected the
equals sign again.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-02-11 20:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-09 20:56 Mismatch in url escaping between org and exported html Mark Janssen
2014-02-09 22:07 ` Mark Janssen
2014-02-10 11:06 ` Bastien
2014-02-10 11:37   ` Mark Janssen
2014-02-11 10:10     ` Bastien
2014-02-11 11:44       ` Mark Janssen
2014-02-11 19:02       ` Michael Brand
2014-02-11 20:54         ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2014-02-10 10:59 Mark Janssen

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).