Autolinking should not occur in link titles
[[www|www.example.org]] the title incorrectly gets converted into an external link.
Using 1.0-stable branch.
Updated by Holger Just about 13 years ago
- Subject changed from autolinking should not occur for titles to Autolinking should not occur in link titles
- Category set to Text formatting
- Affected version (unused) set to devel
The issue is actually the other way round. The auto linking of URLs (performed by
textile/formatter occurs occurs first, the wiki link is only generated after than.
Thus, the above statement is transformed into:Current behavior
[[www|<a class="external" href="http://www.example.org">www.example.org</a>]]
<a href="/projects/redmine/wiki/www" class="wiki-page new"><a class="external" href="http://www.example.org">www.example.org</a></a>
<a href="/projects/redmine/wiki/www" class="wiki-page new">www.example.org</a>
This might be solved by reordering rendering methods in source:trunk/app/helpers/application_helper.rb#L453 in a way that
parse_wiki_links runs before
inline_auto_link. Maybe, these methods need to be included into the textile implementation in source:trunk/lib/redmine/wiki_formatting/textile in the correct ordering.
Updated by Alejandro Mery about 5 years ago
- Status changed from New to Resolved
Go MAEDA wrote:
This issue seems to be fixed in Textile. I could not reproduce on Redmine 3.4.6.devel.17477. But it still does not work as expected in Markdown.
8 years! amazing. I thought redmine was long dead, feel free to close the ticket.