Page 1 of 1

Erreur validation W3C

Posted: 01 Dec 2015, 10:41
by CLAUDE68
Bonjour,
Lorsque je valide mes pages web par VALIDATOR SAC, j'obtiens des erreurs du type '& did not start a character reference. (& probably should have been escaped as &'. Elles proviennent de balises href telles que 'href="index.php?option=com_phocagallery&view=category&id=3:abords&Itemid=249">'. Cela n'a aucune incidence sur l'affichage de ces pages web mais ne pourrait-on pas faire + propre en respectant les normes ?
Pour info, je suis en joomla 3.4.5 et phocagallery 4.1.1.

Re: Erreur validation W3C

Posted: 01 Dec 2015, 15:17
by Jan
Hi, sorry, I don't understand french :-( can you write it in English. Thank you, Jan

Re: Erreur validation W3C

Posted: 01 Dec 2015, 16:30
by CLAUDE68
In my poor English
Hello,
When I validate my Web pages by Validator SAC, I obtain errors of the type '& did not start has character reference. (& probably should cuts been escaped ace & amp; '. They come from tags href such as 'href=" index.php? option=com_phocagallery& view=category& id=3: abords& Itemid=249
Doesn't that affect any the posting of these Web pages but couldn't one make + clean by respecting the standards?
For information, I am in joomla 3.4.5 and phocagallery 4.1.1.

Re: Erreur validation W3C

Posted: 01 Dec 2015, 18:48
by christine
Hi,

some informations about: ambiguous-ampersands (=&)
http://stackoverflow.com/questions/1597 ... 5#15970865
https://mathiasbynens.be/notes/ambiguous-ampersands

Are you using "&" in category name?

Kind regards, Christine

Re: Erreur validation W3C

Posted: 02 Dec 2015, 15:52
by CLAUDE68
Hello,
I have only 2 categories with title :
Le bâtiment et ses abords
Nov. 2012 - Réfection structure des garages
Suspecting the special characters, I have a try with :
Le batiment et ses abords
Nov. 2012 - Refection structure des garages
But the problem still subsists.
What can I do ?

Re: Erreur validation W3C

Posted: 02 Dec 2015, 16:29
by Jan
Hi,

the links in href are produced by Joomla! Jroute method - not sure why there is & and not & but I think, there should be reason for this.

I don't know if using of w3c validators should be taken as relevant. Mostly, the site is produced for people not for robots and if you want to display site with newest features (html5, css3 and specific attributes for different browsers, for different e.g. javascript features) to create the best for people, then your site will be not valid. So you do site for robots (validators) or for people (search engines).

When you see the validation of e.g. google.com, you can see the same errors with & :idea:

https://validator.w3.org/nu/?doc=http%3 ... gle.com%2F


Jan

Re: Erreur validation W3C

Posted: 04 Dec 2015, 15:16
by CLAUDE68
Hello,
While seeking from which this error came, I found that it is the /administrator/component/com_phocagallery/librairies/phocagallery/path/route.php file which is in question.
Pb is solved by replacing the characters there & by &
Can't one make this modification in the component phocagallery to be installed in joomla?

Re: Erreur validation W3C

Posted: 08 Dec 2015, 03:05
by Jan
Hi, which place did you exactly change. Did you check to test it in e.g. UCP where the urls are inside return strings (base64) if they correctly return the redirected value?

The route method in Joomla! should get the standard URL, so I think, to change this you need to modify the Joomla! JRoute method, not the urls in route file :idea:

See e.g.:
components\com_content\helpers\route.php

as default & are used, so there are no conflicts inside the system to manage the urls :idea:


Jan