Preview Button URL not using menu item pointing to the item

1 week 2 days ago - 1 week 1 day ago #78010 by iamrobert
I have started from scratch with new Joomla and fresh FLEXIcontent. Its been several years - so what am I missing?

My page SEF URL is:

/expertise

When I click on the preview button in administrator its not going to the correct URL:

/content_page/english/expertise/expertise?lang=en&preview=2

This URL content seems to match the:

/templates/articles/category_items.php

As a result the design doesn't match the frontend menu link.

Switching off SEF the preview works:
index.php?option=com_flexicontent&view=item&cid=11:expertise&id=4:expertise&Itemid=117&lang=en&preview=2

2. I have set article to 'Route to FC item view' but doesn't make a difference:



3. If I set it Remove IDs from URLs - it seems to go away:



BUT::
/iam/content_page/item/4-expertise
<link href="http://localhost/iam/content_page/item/4-expertise" rel="canonical" />


/expertise
<link href="http://localhost/iam/expertise" rel="canonical" />

Now I have 2 URLS with the same canonical.

Any ideas?

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

1 week 1 day ago - 1 week 1 day ago #78013 by ggppdk
Hello

this is not related to preview URL it is for redirecting or rerouting Joomla article views:

> 2. I have set article to 'Route to FC item view' but doesn't make a difference:

About your question the preview URL
- will use the menu item only if it is possible
a. correct language and of correct access, (this applies for all parent menu items up to the root menu item)
- the extra variable &lang=...&preview=... are always appended to make sure no language switching occurs via associations


-- 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 review. Thanks!

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

1 week 1 day ago - 1 week 8 hours ago #78016 by iamrobert
Thanks, ggppdk - that gave me clues to solve it as I hadn't set up the site correctly.

As the site is multi-lingual - I was setting the items and menu to English, but I hadn't set the site to multi-lingual as Chinese comes later. So - it was creating 2 URLs.

Setting the menu and language to ALL made it redirect to the correct URL or enabling the language plugins seems to fix it.

Start subscriptions for FLEXIcontent!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.