(Refiling with added info, Thanks Noorul)

See Heading2 for description of the bug. This bug has been there since
time immemorial.

(setq org-link-search-must-match-exact-headline nil)

# Input Org file

* Heading1
  
* Heading2
  
  Link to [[Heading1]] is OK. Link to [[Heading3]] is broken. To fix this,
  org-link-search in org-export-target-internal-links should avoid
  matching on the self somehow.
  
* Heading3
  
# Buggy HTML Output  

#+begin_src html
  <p> 
    Link to <a href="#sec-1">Heading1</a> is OK.  Link to
    <a href="#sec-2">Heading3</a> is broken. To fix this, org-link-search
    in org-export-target-internal-links should avoid matching on the
    self somehow.
  </p>
#+end_src


Jambunathan K.

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to