? Success

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
24 Aug 2016

Pull Request for Issue #11759

Summary of Changes

Adding urldecode for the $base as as for the languagefilter component associations
EDIT: took off that in final PR

Testing Instructions

Enable unicode alias in global configuration.
Multilingual site.
Enable Item associations on the language filter plugin as well as Alternate meta tags
Associate items. One of the items should have some utf8 glyph in its alias.
Display the items one after the other, each time looking source for the hreflang produced (and the <base link when the item with utf8 alias is displayed)

The results are different: one hreflang (and <base in one case) is percent encoded, the other is not.

Patch: all links are now pure UTF8. No more percent encoding.

Instead of

<link href="http://localhost:8888/testwindows/trunkgitnew/fr/instructions-multilangue/33-ultimes-v%C3%A9rifications.html" rel="alternate" hreflang="fr-FR" />
<link href="http://localhost:8888/testwindows/trunkgitnew/en/multi-lingual-steps-by-steps/34-last-checks.html" rel="alternate" hreflang="en-GB" />

You will now get

<link href="http://localhost:8888/testwindows/trunkgitnew/fr/instructions-multilangue/33-ultimes-vérifications.html" rel="alternate" hreflang="fr-FR" />
<link href="http://localhost:8888/testwindows/trunkgitnew/en/multi-lingual-steps-by-steps/34-last-checks.html" rel="alternate" hreflang="en-GB" />

when displaying one or the other associated item.

The base link will now be full utf8, example:
<base href="http://localhost:8888/testwindows/trunkgitnew/fr/instructions-multilangue/33-ultimes-vérifications.html" />

Documentation Changes Required

None

avatar joomla-cms-bot joomla-cms-bot - change - 24 Aug 2016
Category Libraries Plugins Front End
avatar infograf768 infograf768 - open - 24 Aug 2016
avatar infograf768 infograf768 - change - 24 Aug 2016
Status New Pending
avatar infograf768
infograf768 - comment - 24 Aug 2016

Just found we still have an issue here. This PR solves ordinary items associations (articles, contacts, etc.) but NOT menu items associations (so in case of both we still have issues)
It looks like hreflang for menu items associations is broken when one alias is utf8 and contains non latin glyphs (Russian, Greek, Macedonian, Tamil)

avatar infograf768
infograf768 - comment - 24 Aug 2016

Corrected the issue for menu items.
Now should work fine.

avatar infograf768 infograf768 - change - 24 Aug 2016
Title
Normalising head links
Regression: Normalising head links and correcting hreflang for menu items associations
avatar infograf768 infograf768 - edited - 24 Aug 2016
avatar infograf768
infograf768 - comment - 24 Aug 2016

This is not as simple as I thought... Help needed. :)

avatar infograf768
infograf768 - comment - 24 Aug 2016

remains to see if urldecode $base is not a pb

avatar joomla-cms-bot joomla-cms-bot - change - 25 Aug 2016
Category Libraries Plugins Front End Plugins Front End
avatar infograf768 infograf768 - change - 25 Aug 2016
The description was changed
avatar infograf768 infograf768 - edited - 25 Aug 2016
avatar infograf768
infograf768 - comment - 25 Aug 2016

This PR now only takes care of the regression for associated menu items alternate and display as readable UTF8 the alternate links.

avatar brianteeman brianteeman - test_item - 25 Aug 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 25 Aug 2016

I have tested this item successfully on 813d2bc

tested on a multilingual site with english, french and hebrew


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11769.

avatar zero-24 zero-24 - test_item - 25 Aug 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 25 Aug 2016

I have tested this item successfully on 813d2bc

works using ultimes-vérifications


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11769.

avatar zero-24 zero-24 - change - 25 Aug 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 25 Aug 2016

RTC. Thanks.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11769.

avatar joomla-cms-bot joomla-cms-bot - change - 25 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - close - 26 Aug 2016
avatar rdeutz rdeutz - merge - 26 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 26 Aug 2016
avatar rdeutz rdeutz - change - 26 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-26 11:52:33
Closed_By rdeutz
avatar joomla-cms-bot joomla-cms-bot - change - 26 Aug 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment