You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Harry Metske (JIRA)" <ji...@apache.org> on 2014/05/22 21:51:02 UTC

[jira] [Updated] (JSPWIKI-535) direct links to sections with accents doesn't work

     [ https://issues.apache.org/jira/browse/JSPWIKI-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harry Metske updated JSPWIKI-535:
---------------------------------

    Attachment: JSPWIKI-535.patch

suggesting the following patch.
We now also urlencode the section part of the link.

I added one more testcase for the JSPWikiMarkupParser.

Would be nice to take this one in the 2.10.1 release, is that possible ?


> direct links to sections with accents doesn't work
> --------------------------------------------------
>
>                 Key: JSPWIKI-535
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-535
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.8.2, 2.8.3
>         Environment: server:JSPWiki v2.8.3-svn-4, 
> client  Debian, Firefox 3,
>            Reporter: Zoltán Baráti
>            Priority: Minor
>         Attachments: JSPWIKI-535.patch
>
>
> Small bug when translating anchors to inpage section links
> the [Baráti,Zoltán] wikipage at jspwiki.org
> {{{
> ....
> \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\  \\ \\ \\ \\ 
> !!!Zoltán
> ----
> ....
> ----
> [Baráti,Zoltán#Zoltán]
> }}}
> the above anchor points to this url:
> http://www.jspwiki.org/wiki/Bar%C3%A1ti%2CZolt%C3%A1n#section-Bar_C3_A1ti_2CZolt_C3_A1n-Zolt%C3%A1n
> as I see it in the browser
> http://www.jspwiki.org/wiki/Baráti,Zoltán#section-Bar_C3_A1ti_2CZolt_C3_A1n-Zoltán
> but in the wiki markup it is:
> but the anchor in the  wikimarkup is translated to a link with this url
> http://www.jspwiki.org/wiki/Baráti,Zoltán#section-Bar_C3_A1ti_2CZolt_C3_A1n-Zolt_C3_A1n
> http://www.jspwiki.org/wiki/Bar%C3%A1ti,Zolt%C3%A1n#section-Bar_C3_A1ti_2CZolt_C3_A1n-Zolt_C3_A1n



--
This message was sent by Atlassian JIRA
(v6.2#6252)