Home Forum
2024-03-29
Benvenuto, Ospite
Nome Utente Password: Ricordami

Issue with Web Site title containing & (&)
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Issue with Web Site title containing & (&)

Issue with Web Site title containing & (&) 14 Anni, 6 Mesi fa #470

  • wbct
  • Offline
  • Fresh Boarder
  • Messaggi: 3
I have a slight issue with a website I am trying to use Tag Meta on.

The title of the website is "Wilts & Berks Canal Trust". Normally the title of the page is coded as ...
<title>Wilts &amp; Berks Canal Trust</title>

When I turn on "Add site name to page title" the titles become like this ...
<title>Wilts &amp;amp; Berks Canal Trust - Environment</title>

It looks like the title is being encoded twice.

Anybody know a way to get around this?

Thanks for any help,

Matt
L'Argomento è stato bloccato.

Re:Issue with Web Site title containing & (&) 14 Anni, 6 Mesi fa #472

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
This is a Tag Meta plugin feature.

Just disable it if you don't need. Send me a screenshot of your plugin settings if you need help.

Regards,
Luigi
L'Argomento è stato bloccato.

Re:Issue with Web Site title containing & (&) 14 Anni, 6 Mesi fa #473

  • wbct
  • Offline
  • Fresh Boarder
  • Messaggi: 3
I would like to use the functionality in Tag Meta to add the Web Site name to the start of the Title, but I can't if this double encoding is taking place.

Here are my settings ...
Le immagini di questo Forum sono invisibili ai visitatori. Prego accedi o registrati per visualizzarli.
Allegati:
  • Allegato Le immagini di questo Forum sono invisibili ai visitatori. Prego accedi o registrati per visualizzarli.
L'Argomento è stato bloccato.

Re:Issue with Web Site title containing & (&) 14 Anni, 6 Mesi fa #474

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
I just use getTitle and setTitle from Joomla API.

I'm investigating on the problem. I'll let you know as soon as possible.

Thanks,
Luigi
L'Argomento è stato bloccato.

Re:Issue with Web Site title containing & (&) 14 Anni, 6 Mesi fa #475

  • wbct
  • Offline
  • Fresh Boarder
  • Messaggi: 3
I wonder if the getTitle is providing an encoded version of the title and setTitle is doing an encoding, so therefore it is getting encoded twice?
L'Argomento è stato bloccato.

Re:Issue with Web Site title containing & (&) 14 Anni, 6 Mesi fa #476

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
I think so,
and I'm checking on my test site.

Please, wait for a while,
Luigi
L'Argomento è stato bloccato.

Re:Issue with Web Site title containing & (&) 14 Anni, 6 Mesi fa #477

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Ok,
I got it. It is documented, setTitle uses htmlspecialchars.

So, change line 97 in file plugins\system\tagmeta.php from:

$document->setTitle($newtitle);


To:

$document->setTitle( htmlspecialchars_decode($newtitle) );


I will fix this in the next release.

Really thanks,
Luigi
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.48 secondi
Cerca con Google
News
Chi è online
 91 visitatori online
Sponsor

slotmachineaamsonline.com è una guida alle migliori slot machine online legali in Italia. Sul sito trovi un elenco sempre aggiornato dei casino online con Slot machine e bonus slot, le ultime novità dal mondo delle slot online e le migliori strategie per vincere. Inoltre, è disponibile una sezione dedicata alle slot machine da BAR che finalmente sono disponibili nella versione online.