Hi, yes I'm aware of the encoding problems with urls in Tomcat certain
versions. This is not my problem. My urls are displaying OK, depending on
browser. Chrome is displaying decoded urls but IE is not decoding urls, and
it displays url in it's original form with url encoded characters.
For example, when I create a page with name "Čučoriedky - Blueberries" I'll
get this url
http://wiki/test-xwiki/view/Sandbox/%C4%8Cu%C4%8Doriedky+-
+Blueberries/.
But when using chrome, the chrome displays it decoded, which displays nice,
but when you copy the link, it is still encoded. The IE is not decoding
URL, so in IE the url looks in address bar ugly.
When you explicitly navigate to decoded url, "http://wiki/test-xwiki/view/
Sandbox/Čučoriedky - Blueberries/" it works as expected.
So I think I have configured URL encoding correctly and I have followed the
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding.
I've attached screenshots to see what I'm talking about.
Best regards
Mirec
On 6 September 2016 at 09:14, Paul Libbrecht <paul(a)hoplahup.net> wrote:
Miroslav,
are you sure that the issue is in XWiki?
It's a very very very fragile topic but I think I can be done and it is
considerably more elegant to have URLs that show the native language (I
feel).
Can you describe you're exact setup?
A few hints from my experience:
I've seen URLEncoding to be a tomcat context parameter (you want UTF8 I
think, many had the bad habit of taking the platform encoding).
Have you changed the platform encoding of XWiki? (the system properties)
I've also had use of the "nocanon" option of Apache's RewriteRule.
Changing the page-URL to remove accents would not be done in the
URLFactory, it would be done in the page creation template. This would
be the last bit I'd touch as it is multi-fold (e.g. you should start by
using /xwiki/bin/edit/XÑü∂ß instead of /view/XÑü∂ß then click the buttons).
Paul
Miroslav Galajda
<mailto:miroslav.galajda@gmail.com>
6 September 2016 at 09:04
Hi, does anyone have idea, how to automatically modify/generate url from
page title so that the url doesn't contains accents or any special
characters. I want to achieve simmilar approach used in CMS system
Umbraco.
Which creates url based on page title but strips spaces and any
characters
that requires url encoding.
I've found xwiki.urlfactory.serviceclass in xwiki.cfg. What is
responsibility of that class? What is it purpose? Can it be used to solve
my requirement?
Thanks
Mirec
On 11 July 2016 at 21:58, Miroslav Galajda <miroslav.galajda(a)gmail.com>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Miroslav Galajda <mailto:miroslav.galajda@gmail.com>
11 July 2016 at 21:58
Hi, I’m using XWiki in Slovak language which uses accents, which
consequently causes problems with urls. The urls becomes ugly
containing encoded characters with accents. Does XWiki have
integration point out of the box to replace the page name with custom
one, with stripped accents from it?
Thank you
Mirec
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users