The Wiki URL Normalizer application has been released in version 1.1.
In this version, we provide support for free standing URLs provided in documents.
You can get more informations about the extension here.
Thanks,
The Wiki URL Normalizer application has been released in version 1.1.
In this version, we provide support for free standing URLs provided in documents.
You can get more informations about the extension here.
Thanks,
Good job!
Hello!
@caubin I’ve just been testing this on 9.5.1 and it doesn’t seem to modify my wiki’s external domain URL, i.e. it only works with http://localhost:8080.
Do I need to configure this or is this a limitation at the moment?
Thanks,
Ben
@ben.megson It works by using the aliases defined in your wiki’s descriptor. Check it and add any required alias.
Thanks Vincent!
Btw, I think extension is a very good idea.
Ben
Hi Ben, cool, glad you like it! We did this, Caubin and me during an XWiki hackathon this summer
We’ve recently fixed a lot of bugs and released versions 1.1.1, 1.1.2, 1.1.3, 1.1.4 and 1.1.5.
See http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiLinkURLNormalizer/#HReleaseNotes for details.
Maybe this needs to go somewhere else, but I am on 1.1.1. I clicked Updater and I saw it find 1.1.3, 1.1.4, and 1.1.5:
But then it came back and said “All extensions are up to date”
Is that a problem with the Updater or this extension (I rarely use the Updater).
Looks like a bug that would be worth reporting on jira.xwiki.org
You can force installing a given version by searching for an extension and clicking on “list stable versions” in the details view.
Gentlemen,
I can’t seem to get it to work for “download” pages, i.e. “https://172.28.2.55/bin/download/Endfng/Tyddde/1501686358853-553.png”
As we’re talking about links, can anyone point me in the direction of the URL “renderer”? I want to change the colour of links to pages the user doesn’t have view rights on.
Thank you,
Ben
It only normalizes “view” URLs since there’s no wiki link syntax for other actions.
Actually you’re right, we should probably support “download” too and use the “attach” prefix! Would you mind creating a jira for this at Loading... ?
As in: [[label>>attach:Endfng.Tyddde@1501686358853-553.png]]
Vincent,
I’ll give it a go… it will be my first jira!
What do you think about the URL rendering for links with no user view rights? Is it something I can do in one of the .vm files and CSS?
I can think of 2 ways:
XHTMLLinkTypeRenderer
with hint doc
and with a priority higher than 1000
(in order to override the default component we provide). The default implementation is here: xwiki-rendering/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/link/DocumentXHTMLLinkTypeRenderer.java at fdc91b7a5e94c04e0fab1c714d40a7c1307986d4 · xwiki/xwiki-rendering · GitHub (and the method that would need to be modified is xwiki-rendering/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/link/DocumentXHTMLLinkTypeRenderer.java at fdc91b7a5e94c04e0fab1c714d40a7c1307986d4 · xwiki/xwiki-rendering · GitHub). More precisely you’d check rights and use a different SPAN CLASS if the user doesn’t have the permission. Then you’d style this in CSS.Also note that I find this use case to be interesting so you could also raise a jira at Log in - XWiki.org JIRA as an improvement to provide this feature by default.