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

Redirects do not work between components
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Redirects do not work between components

Redirects do not work between components 13 Anni, 9 Mesi fa #1264

  • anguyen
  • Offline
  • Fresh Boarder
  • Messaggi: 2
I would like to redirect between two components, but it is not working, here an example of one redirect:

From: /index.php?option=com_kunena&Itemid=0&func=view&catid=13&id=110

To: http://{siteurl}/index.php?option=com_webmapplus&view=location&id=112

The plugin is enabled.
L'Argomento è stato bloccato.

Re:Redirects do not work between components 13 Anni, 9 Mesi fa #1265

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
remember to "escape" the question mark:

From: /index.php\?option=com_kunena&Itemid=0&func=view&catid=13&id=110
 
To: http://{siteurl}/index.php?option=com_webmapplus&view=location&id=112


It should work.

Luigi
L'Argomento è stato bloccato.

Re:Redirects do not work between components 13 Anni, 9 Mesi fa #1266

  • anguyen
  • Offline
  • Fresh Boarder
  • Messaggi: 2
it worked! thanks a lot!
L'Argomento è stato bloccato.

Re:Redirects do not work between components 13 Anni, 8 Mesi fa #1285

I had a similar situation where I have a customer who has several hundred pages that need to be redirected from non-SEF URLs to a new site with SEF URLs. I'm pasting some code that helped us by automatically escaping the '?' when it is saved to the database. It doesn't keep adding so if you have to update the link, you don't have to delete it each time. Hope this code helps.

In the /administrator/components/com_redj/models/itemredj.php file at the top of the store() function, add:

if(strpos($data['fromurl'], '?') && !strpos($data['fromurl'], '\?')) {
$data['fromurl'] = str_replace('?', '\?', $data['fromurl']);
}


Donald Champion
President of Technical Services, Polished Geek LLC
L'Argomento è stato bloccato.

Re:Redirects do not work between components 13 Anni, 8 Mesi fa #1289

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Thanks a lot for this trick.

Regards,
Luigi
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.49 secondi
Cerca con Google
News
Chi è online
 128 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.