Actions
Defect #3276
closedIncorrect handling of anchors in Wiki to HTML export
Start date:
2009-04-30
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Here is my conf: Postgresql 8.3.7-1; Ruby 1.8.7; Rails 2.3.2; Redmine 0.8.3
The problem is when you export Wiki page to HTML all local anchor link are converted to html links. For example (space between [ and ] puts for notextile):
Wiki
[ [Wiki_page_name#some_anchor|link_text] ]
HTML
<p><a href="Wiki_page_name.html" class="wiki-page">link_text</a></p>
This conversion makes link unreachable.
After changing :wiki_links => :local
on :wiki_links => :anchor
in /app/views/wiki/export.rhtml anchors link starts convert to
<p><a href="#Wiki_page_name" class="wiki-page">link_text</a></p>
After changing
format_wiki_link = Proc.new {|project, title, anchor| "##{title}" }
to
format_wiki_link = Proc.new {|project, title, anchor| "##{anchor}" }
in /app/helpers/application_helper.rb converstion works fine.
Files
Related issues
Actions