Customizing page addresses
Ask more experienced users if it is possible to use transliteration from Cyrillic to Latin in the address of the wackowiki page. Or the ability to set the address of a page with a different name than the page name? Version 6.0.10 Unicode. Thank you in advance.
Comments
Log in or create an account to post a comment.
Re: Customizing page addresses
https://unicode-org.github.io/[...]/transforms/general/
It is not suited as
supertag
because it is not unique:/WabiSabi
It is not suited for validation, but it can be used for normalization or sanitization for filenames, usernames, search or slugs. Therefore the
supertag
and the page tag transliteration has been removed, because the pagetag
must be unique.What worked within a specific charset for a language no longer works with Unicode.
For old backlinks you can create redirects in your .htaccess file or add pages with redirects. Furthermore the page tag is now also accent and case-sensitive.
Re: Customizing page addresses
I just created a new site and no redirection to the old pages is needed.
But when copying the link
https://example.com/Начало (rus)
I get
https://example.com/%D0%9D%D0%B0%D1%87%D0%B0%D0%BB%D0%B
and it's awful!
Even this view would suit me
https://example.com/view.php?f=33&t=13270
or
https://example.com/Nachalo
but I don't know how to implement it. : ((
Re: Customizing page addresses
There is a solution, but each browser may use different default settings regarding the IRI and IDN format.
Example Firefox:
browser.urlbar.decodeURLsOnCopy
totrue
viaabout:config
.https://ru.wikipedia.org/wiki/%D0%92%D0%B0%D0%B1%D0%B8-%D1%81%D0%B0%D0%B1%D0%B8
buthttps://ru.wikipedia.org/wiki/Ваби-саби
.IDN_show_punycode
viaabout:config
.https://яндекс.рф
<->https://xn--d1acpjx3f.xn--p1ai
When you copy an URL in the address bar of Firefox and leaving the first letter out, it also copies the string as is, e.g.
ttp:/example.com/Начало
Opera and Vivaldi for example use the IRI format by default.
Chrome Extension
B. HTML links
However the
mini_href()
function in WackoWiki percent-encodes all URIs to ensure backwards-compatibility with systems that do not support the IRI format.rawurlencode
So you can try to turn the default of the
$encode
parameter in thehref()
function fromtrue
tofalse
. It needs more feedback and evaluation, may be we can add a config option to disable the percent-encoding partially. Some functions require the rfc3986 compliant format mandatory. HTTP does not allow IRI, only URI. IRIs are a URI generalization that allows Unicode characters.https://ru.wikipedia.org/wiki/%D0%92%D0%B0%D0%B1%D0%B8-%D1%81%D0%B0%D0%B1%D0%B8
https://ru.wikipedia.org/wiki/Ваби-саби
RFC 3987
Uniform Resource Identifier
Internationalized Resource Identifier
C. Alternate links
Via the URI router alternate links can be created like the permalink. These links can be created for any possible purpose.
Re: Customizing page addresses
Searching didn't help me.
Re: Customizing page addresses
Do you need the IRI as reference in a email, other application or database?
Till we find a common solution, I suggest you can copy the IRI from the address bar of the browser. I also found some browser plugins which transform the URI into the IRI format. Isn't the IRI format conversion a much more common issue? From the user's point of view, the conversion to IRI and IDN format mainly serves the readability of the link.
https://яндекс.рф
https://xn--d1acpjx3f.xn--p1ai
The sitemap.xml and the canonical link use the IRI format. Some search engines show the IRI formatted link others only the URI. It will take some time before we get a bigger picture, until then we can share our insights, workarounds and best practice. I hope for some feedback on how this has been solved elsewhere.
Regarding WackoWiki we must evaluate where we can (optionally) use the IRI format without breaking the application.
IRI format