emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Infojs deeply nested UUID based internal links do not work
@ 2015-01-28 20:41 Svjatoslav Agejenko
  0 siblings, 0 replies; only message in thread
From: Svjatoslav Agejenko @ 2015-01-28 20:41 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello!

I did HTML export with INFOJS enabled.
Document has deeply nested nodes.

When I link to relatively major nodes, generated URL looks like:
javascript:org_html_manager.go(3)

And clicking it works well. Corresponding node will open.


But when I link to even deeper node, URL now becomes like that:
.../bug%20demo.html#sec-1-1-1-1-2

And such links do not work with INFOJS.

I attached minimal example org file and generated HTML.

Is it known limitation of INFOJS ?
Any known workarounds ?

Best regards,
Svjatoslav


[-- Attachment #2: bug demo.html --]
[-- Type: text/html, Size: 12538 bytes --]

[-- Attachment #3: bug demo.org --]
[-- Type: text/plain, Size: 3241 bytes --]

#+INFOJS_OPT: view:t toc:t ltoc:t


- link to [[id:06704d05-0da1-410e-86ab-bc49d65b2b1a][sixth]] element (broken)
- link to [[id:70bde97d-07c7-4c84-a337-c86b52f94ff3][third]] element

The culprit seems to be the URL like this. It does not work with
InfoJS:
: .../bug%20demo.html#sec-1-1-1-1-2

While URL's like this work
: javascript:org_html_manager.go(3)


* first
Sed sit amet massa ipsum. Sed scelerisque, mauris eu porttitor auctor,
metus justo vulputate nibh, sit amet pharetra lorem leo in
ipsum. Phasellus sed dui eu eros consequat efficitur. Phasellus a
felis leo. Pellentesque suscipit diam ac condimentum finibus. Sed
ornare eu nibh sed semper. Proin et dui tortor. Phasellus consectetur
volutpat bibendum. Pellentesque in eros massa. Aliquam et leo
lectus. Donec lobortis, dui ac laoreet dapibus, massa velit accumsan
purus, sit amet elementum augue nulla sit amet ante. Sed a egestas
urna. Aenean ac aliquam dui, at volutpat erat.

** second
*** third
:PROPERTIES:
:ID:       70bde97d-07c7-4c84-a337-c86b52f94ff3
:END:

**** fourth

***** sixth - random stuff
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at
blandit neque. Nulla a leo auctor, malesuada sapien in, cursus
massa. Maecenas a nibh augue. Nulla facilisi. Donec ultrices
sollicitudin dui ac elementum. Praesent semper varius bibendum. Cum
sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Fusce hendrerit ultrices urna, a tincidunt enim finibus
sed. Integer posuere leo quis urna vulputate dapibus.

***** sixth - target
:PROPERTIES:
:ID:       06704d05-0da1-410e-86ab-bc49d65b2b1a
:END:
Praesent at tellus tincidunt, dapibus purus vitae, molestie
orci. Curabitur consectetur, felis eu condimentum consectetur, nunc
risus interdum orci, id eleifend arcu nunc sed ex. Donec cursus
laoreet lectus vitae consequat. Donec eleifend eu eros sodales
scelerisque. Sed et faucibus nisi. Donec nec quam sit amet odio
fermentum efficitur. Nullam gravida at nunc sed vestibulum. Mauris
consectetur orci ac quam tristique sollicitudin. Mauris eget augue ut
nibh venenatis fringilla et sit amet dui. Donec id felis eget tellus
eleifend vulputate dignissim ac sem. Nullam iaculis enim ut orci
lacinia pharetra. Etiam tristique ac lectus vel semper. Aliquam
iaculis, metus molestie tincidunt bibendum, orci tortor condimentum
lectus, ut venenatis lorem eros et eros. Suspendisse molestie, erat
non auctor convallis, nunc turpis accumsan urna, in fermentum dolor
urna ac ante. Nam scelerisque, lectus nec efficitur viverra, dolor
nibh tempor lorem, ac pellentesque risus diam eget nibh.

***** sixth - random stuff 2
Vivamus leo nulla, accumsan ut finibus sit amet, porttitor at
neque. Maecenas in pellentesque massa. Quisque pulvinar facilisis
purus, at mattis augue ultricies a. Quisque fringilla quam a mi
tempor, vel hendrerit quam facilisis. Vivamus vitae velit elementum,
congue est ut, sagittis mi. Phasellus rutrum lorem tortor, sit amet
tincidunt turpis tincidunt sed. Aliquam at quam quis turpis consequat
luctus. Vivamus vestibulum urna est, et dignissim dui viverra
nec. Duis posuere mattis vehicula. Nunc ac volutpat nisl, sit amet
condimentum mi. Praesent malesuada odio in velit bibendum, vitae
ullamcorper ex aliquam.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-28 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-28 20:41 Infojs deeply nested UUID based internal links do not work Svjatoslav Agejenko

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