Problème de routage entre FC et com_content

More
5 years 7 months ago #76183 by fredo
Bonjour,

On a régulièrement des problèmes avec les articles qui sont publiés en page d'accueil, un clic sur le lien pour l'ouvrir et le navigateur fini par afficher une page avec le message : "La page n'est pas redirigée correctement".

On utilise FlexiContent et sh404SEF.

Les articles en page d'accueil sont bien dans leurs catégories principales et en plus dans la catégorie "page d'accueil". Cette catégorie "page d'accueil" est bien exclue dans le plugin "Flexiadvroute". Au niveau du type article, dans la vue de l'item, Redirected est sélectionné. Le lien de menu de la page d'accueil est bien de type "FLEXIContent » Category » Category".

Dans sh404SEF, dans les URLs réécrites, on a l'URL qui pose problème avec un duplicata :

index.php?option=com_flexicontent&Itemid=728&cid=164&id=2196&lang=fr&view=item
index.php?option=com_content&Itemid=101&catid=164&id=2196&lang=fr&view=article

L'une des URL non réécrite utilise com_flexicontent et l'autre com_content. Lorsqu'il y a un problème c'est l'URL avec com_content qui est sélectionnée comme URL principale. On corrige le problème en sélectionnant manuellement celle avec com_flexicontent comme URL principale.

Mais on ne comprends pas comment ce choix est fait et pourquoi il est parfois mal fait ?

Si vous avez des idées ou de pistes ?

Merci.

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #76185 by ggppdk
Hello

com_content view is configured to be redirected "URL redirection" or "rerouted" (flexicontent will appear without the URL changing)
(the above is configurable per item type, you can check the setting in Flexicontent backend types manager)

So if something else tries to redirect com_flexicontent to com_content you will have a loop


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #76187 by fredo

ggppdk wrote: Hello

com_content view is configured to be redirected "URL redirection" or "rerouted" (flexicontent will appear without the URL changing)
(the above is configurable per item type, you can check the setting in Flexicontent backend types manager)


Thank you for your reply.

Yes, in the configuration of the article type we have selected "Redirected" for the item view.

But we regularly have problems.

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #76188 by ggppdk
Hello

if you use "Reroute" instead of "Redirect"
then flexicontent will appear without the URL changing
(=without making a URL redirection)

so you should be able to avoid the loop

Still the redirection from com_flexicontent to com_content that SH404SEF is doing , is wrong choice


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #76189 by fredo

ggppdk wrote: Hello

if you use "Reroute" instead of "Redirect"
then flexicontent will appear without the URL changing
(=without making a URL redirection)

so you should be able to avoid the loop


Okay, we'll test with "Reroute".

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.354 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline