• By Arnar Hannesson 1 decade ago

    I have a page named e.g. "Reykjanesbær". The "æ" is an Icelandic letter.

    If I use the wiki formatting "[[Reykjanesbær]]" to link to this page from another page the link does not work. The generated link is "http://server/wiki.nsf/dx/Reykjanesbr" - which is wrong.

    • Possible solution

      By Arnar Hannesson 1 decade ago

      Hi - I had to solve this and came up with the following solution. It seems to work and I haven't found any issues so far.



      ======================

              if(this.checkForDoc(t)){<br/>
                 //page exists - open<br/>
                  <br/>
                 //CHANGED BY ARNAR H. at GoPro - so Icelandic names would work...<br/>
                  tlink=url+&quot;/dx/&quot;+java.net.URLEncoder.encode(@ReplaceSubstring(t.replace(/ -/g,&quot;-&quot;).replace(/^\s*|\s*$/g,'').replace(//g,&quot;_&quot;).replace(/\//g,&quot;&quot;).replace(/&amp;quot;/g,&quot;&quot;).replace(/&amp;amp;/g,&quot;&quot;),&quot;\\&quot;,&quot;#92&quot;), &quot;UTF-8&quot;);<br/>
                 //tlink=url+&quot;/dx/&quot;+this.makeSubject(t);<br/>
                  <br/>
                  im=&quot;&quot;;<br/>
                  if(t2!=&quot;&quot;){<br/>
                      t=t2;<br/>
                  }else{<br/>
                      t2=t;<br/>
                  }<br/>
      

      ======================