By Skyla Services on Tuesday, 28 November 2017
Posted in Technical Issues
Likes 0
Views 1.9K
Votes 0
Hello,

We are having an issue setting up Easyblog with separate categories. It seems the posts routing is linking to the "main" or first category we set up instead of the expected behaviour to load under the active link.

So a post that should load in /category3/My-Post actually links back to /category1/My-Post

Routing Behavior wasn't changed and is still "Default" (This option will detect the view portion in a URL and determine which menu id is suitable for the particular link.) which is what we want.

Example - We create a post under category "Apple" under the blog page "Apples". The link to the posts will link to a different category like "Fruits" instead of keeping them under the "Apples" blog page

This happens with a default install - with no customization beyond adding categories and posts.

EasyBlog Categories:

Fruits
Apples
Bananas
Cherries

Joomla Menu links (all EasyBlog » (Posts) Frontpage » (Posts) Frontpage)
Fruits (first created which seems to matter)
Apples
Bananas
Cherries


The expected results are if someone lands on the "Fruits" page - they will see only posts from the Fruits category and when they click on it, loads within the Fruits page/template.

Same thing if they land in Apples, Bananas or Cherries. They should all only see their own posts and when you click on them, they should load under their own section of the website.

The results we're getting is not working this way. When you load the Banana page - the posts links go to /fruits/Banada-post instead of the /bananas/banana-post.

We made sure each posts were created under their respective link (even if it shouldn't matter).

Example from our test environment:

https://demo.skylaservices.ca/fruits
https://demo.skylaservices.ca/apples
https://demo.skylaservices.ca/banana
https://demo.skylaservices.ca/cherries

You will notice, each post no matter the page links back to the /fruits/ page. ie. /fruits/cherries-they-exist

I have provided backend information so you can login and see as it may be easier to follow and troubleshoot.
Hi there,

You should using the 'single category' menu instead as I created in your test environment http://take.ms/KStyV
·
Tuesday, 28 November 2017 15:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fadhli,

That seems to do what we are looking to achieve. We'll change the links to 'single category' and only keep the main blog category as the "Post Front Page" (e.i. only use one on the site) and give that a try.

Thanks & Take care

- Jen G.
·
Tuesday, 28 November 2017 20:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating us on this Jen. Yep, it is ideal that you have at least 1 menu item that links to the "Frontpage blog layout" as it would act as a fallback if you don't have a menu that links to one of your category.

If you don't want this menu to be seen, you could create another menu and hide that menu item under that menu
·
Tuesday, 28 November 2017 23:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post