Keyword

SEF url's and menu

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 7 months ago #169309 by Sarrene
SEF url's and menu was created by Sarrene
Good morning everyone!
I have a slight issue i am trying to sort out. K2 items are not respecting the menu pathing for subcategories and items. I have a hidden menu created and all categories, yet this did not work.

URL: test.ifstudios.us/wiki
Example:http://test.ifstudios.us/basics/installation/installing-heroengine
Desired: test.ifstudios.us/wiki/basics/installation/installing-heroengine

Second issue I have is for some reason, categories are adding in an extra bit in the url

Example: test.ifstudios.us/wiki/content/getting-started
Desired: test.ifstudios.us/wiki/getting-started

I am not sure where or why the "content" is being added. This occurs as default and with the hidden menu

Any thoughts or ideas? I do not have anything installed that would alter the SEF urls, I do have Joomla's SEF enabled.

Thank you kindly,
Sarrene'

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

More
6 years 7 months ago - 6 years 7 months ago #169319 by JoomlaWorks
Replied by JoomlaWorks on topic SEF url's and menu
In order to have these URLs...
URL: test.ifstudios.us/wiki
Example:http://test.ifstudios.us/basics/installation/installing-heroengine
Desired: test.ifstudios.us/wiki/basics/installation/installing-heroengine

...you must have a tree of K2 categories as menu items like this:
- home
- other page
- wiki (K2 category)
    |- basics (K2 category)
    |- other category (K2 category)
            |- 3rd level category (K2 category)
(and so on)

As for your other issue, there must be a K2 category menu item pointing to all categories and using the menu item alias "content". This is what causes this:
Example: test.ifstudios.us/wiki/content/getting-started
Desired: test.ifstudios.us/wiki/getting-started

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 6 years 7 months ago by JoomlaWorks.

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

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 7 months ago - 6 years 6 months ago #169327 by Sarrene
Replied by Sarrene on topic SEF url's and menu
Aye, that is what I had done with the categories themselves, I have one top level/parent category, "wiki" and all others are nested under that as children and children of children.

For the menu, I had tried both direct on the main menu, and then its own hidden menu.
Wiki Menu (name)
HeroEngine Wiki (/wiki) (top category)
|_ Basics
    |_ Installation
    |_etc
    |_etc
|_ Art
    |_ 3ds Max
    |_ etc

Both the menu set up on the main menu and the wiki menu (using alias) as well as the categories themselves are nested and structured the same way.

I will try moving them back to the main menu again, rebuild menu items and see if that helps.

Will update on the progress and anything I found or any issues i might still have.

Thank you so much!
Sarrene'
Last edit: 6 years 6 months ago by JoomlaWorks.

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

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 7 months ago #169329 by Sarrene
Replied by Sarrene on topic SEF url's and menu
Okay, I am at a loss. It is still doing the same thing for me. Moved all links back to the main menu
Nested category and menu item shows up as:
test.ifstudios.us/support/wiki/content/getting-started
Nested k2 article under this shows up as:
test.ifstudios.us/support/basics/installation/installing-heroengine

Please note there is no "content" anywhere in the menu items (as an alias, separator, nothing) nor in the categories or their alias'.

Moving the Wiki as a child menu to a root results in:
Nested category and menu item shows up as:
test.ifstudios.us/wiki/content/getting-started (note the 'content' again)
Nested k2 article under this shows up as:
test.ifstudios.us/basics/installation/installing-heroengine

I have rebuilt the menu each time, as well as cleared out all caches. I had already turned off our server cache, any cdn and disabled joomla's default cache the other day.

I did check on a completely different site i mentioned earlier that has been using K2 for a while, and the urls work as expected, and the root k2 is a child item.
Version of K2 for working site (sef url's and lightbox: 2.8.0
Version of test site K2 (not working sef url's and lightbox): 2.9.0
Joomla version for both sites: 3.8.12
server file and lib versions (php, json, etc): identical

K2 version is really the only difference I can find.

Thoughts?
Thank you so much and Regards from someone totally confuzzeled,
:/

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

More
6 years 6 months ago #169341 by JoomlaWorks
Replied by JoomlaWorks on topic SEF url's and menu
The URL router hasn't changed from K2 v2.8.0 to 2.9.0. It looks like a configuration issue somewhere.

You don't happen to have a SEF URL extension installed, do you (e.g. sh404SEF)?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #169346 by Sarrene
Replied by Sarrene on topic SEF url's and menu
I do not have any sef extension installed now or ever. I would never use sh404sef for reasons I described in another post (no offense intended). I have not had a need for anything like that since 3.3 or 3.4 (I dont remember, it has been a long day!)

Server is the same configuration as my other site. In fact on the same master server using the same apache build.

Configuration of Joomla's SEF settings the same, htaccess file the same, K2 settings identical minus category set up of course.

I am at a complete loss here. I have used K2 for years over dozens of sites with very little problems and never anything weird like this. I have been doing this for a while. Though I am open to learning new things and have no problem if i missed something somewhere.I just cannot figure out what or where.

Now, the odd thing was, i reverted to the same version i have on a team dev site (used for development documentation and gdd entries) and the problem seemed fixed after rebuilding the menus. Go back to the new and same thing again.

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

More
6 years 6 months ago #169363 by JoomlaWorks
Replied by JoomlaWorks on topic SEF url's and menu
In any case, you can always recreate the menus. Worse case scenario, move all your content categories under a single K2 category (call it "wiki"). Then make a single menu item pointing to that "master" category. Make sure you have no other menu item pointing to a category in K2. Check your URLs. If they look OK, utilize K2's advanced SEF option to make them prettier.

I'd love to help more but it would require me to login to your site and check *everything* which is really out of the scope of the support I can provide for a free extension.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago - 6 years 6 months ago #169380 by Sarrene
Replied by Sarrene on topic SEF url's and menu
Aye, Fotis,
This was my first instinct and it is what I moved back to twice. It is how it is set up currently, and can be seen on the front end and backend. It is still not working for me for some reason. Can see in my post above a sample of the structure.
HeroEngine Wiki (/wiki) (top category)
|_ Basics
    |_ Installation
    |_etc
    |_etc
|_ Art
    |_ 3ds Max
    |_ etc

Very frustrating!
Last edit: 6 years 6 months ago by JoomlaWorks.

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

More
6 years 6 months ago #169505 by Martin Hinchliffe
Replied by Martin Hinchliffe on topic SEF url's and menu
Your question about why the word content is in the URL:

I think this is a setting in K2 - If you click on the Parameters button at the top left of the screen when you're in the K2 component, then go to the advanced tab, you can find this setting if you scroll down a litte:

Attachments:

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

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #169523 by Sarrene
Replied by Sarrene on topic SEF url's and menu
Thank you, that much now makes sense to me. It is much appreciated. Is there a way to disable this? Oddly enough this is on our other site and is not displayed. I did check the settings, and they are identical between the two sites.

I still have the same primary problem of the SEF urls removing the menu root item from the url, Wiki. One site work using the older version and the new one that will be a public site does not work correctly or as expected:

- All categories are under the Wiki main menu item.
- No SEF plugins installed
- Joomla SEF enabled
- No changes or 301's or anything else that would remove it.
- Same server with the same exact apache and php packages (identical vps's)
► Only happens with this version.
► only difference are the templates

The main page and first level category works just fine. However, if you click on a subcategory or artical inside, it fails and removes the root main menu item.

test.ifstudios.us/wiki
test.ifstudios.us/wiki/content/getting-started
test.ifstudios.us/basics/installation
test.ifstudios.us/basics/installation/installation/installing-heroengine

Thoughts? I really need to get back to work on this and start adding the links to key words.

Thank you so very much!

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

More
6 years 6 months ago #169525 by JoomlaWorks
Replied by JoomlaWorks on topic SEF url's and menu
Well, as you can see, you can simply disable K2's Advanced SEF options. Clean your site's cache and re-test.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Third Sun Productions
  • Third Sun Productions's Avatar
  • Offline
  • Junior Member
More
6 years 1 week ago #171827 by Third Sun Productions
Replied by Third Sun Productions on topic SEF url's and menu
Did you ever find a resolution to this? I've used k2 on tons of sites, so very familier with it. But on this site, K2 isn't respecting that Items exist on a menu. Sounds like the same issue, and I can't see why. Its creating a lot of duplicate content issues. For example:

This item is on a menu: wasatchpeaks.com/auto-research
However, on this category page: wasatchpeaks.com/services
The link is: wasatchpeaks.com/services/item/96-auto-research

Thanks!

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

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 days ago #171832 by Sarrene
Replied by Sarrene on topic SEF url's and menu
Sadly, I had not. I ended up writing a custom plugin for us to work with Joomla's alias system. This way I could target specific components and their url's.

I wish i had better news. Sadly since this was reproducible on our end and several sites for this version, we had to find something as K2 really was the best component for our continued use.
If you only have a few pages and this is still persistent for you, there are htaccess and apache options, but i would not recommend that as they tend to cause more load if you have medium to high traffic.

We have been using K2 for many years (since K2 was still very young) for both our developers sites and public/product sites. I jut have not had to post too often due to how well K2 was put together and their continued updates. We have used it generally as an interactive wiki and for (living) design documents for our developers.

Perhaps someone has found out why this is occurring for some people with this version and will be able to find a way around it. Of course, with J4 coming soon, we will have a few more nice options regarding the sef urls and how the router works.

Good luck and lets hope we can either get attention to this for those few of us that are having the problem and can find a work around that does not include custom plugins (that causes server overhead also) or htaccess redirects.

Keep me/us updated and good luck!
- Sarr

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

More
6 years 5 days ago #171844 by JoomlaWorks
Replied by JoomlaWorks on topic SEF url's and menu
@Third Sun Productions Which Joomla & K2 versions are you using? Did you try to "Rebuild" your menu items?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Third Sun Productions
  • Third Sun Productions's Avatar
  • Offline
  • Junior Member
More
6 years 4 days ago #171848 by Third Sun Productions
Replied by Third Sun Productions on topic SEF url's and menu
@Sarrene thanks for your reply and info. @Fotis Everything is up to date - Joomla 3.9.5 and K2 2.9.0. I did try menu rebuild. I also tried reordering system plugins - wondering if the order of the k2 plugin would matter. This *was* an upgrade from a 2.5 site many years ago, if that could matter. There is no custom SEF components on there.

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

More
6 years 3 days ago #171854 by JoomlaWorks
Replied by JoomlaWorks on topic SEF url's and menu
The migration from 2.5 to 3.x may have screwed up some of the menus. Did you try creating new entries for these 2 menu items and simply unpublishing the old ones?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Third Sun Productions
  • Third Sun Productions's Avatar
  • Offline
  • Junior Member
More
6 years 3 days ago #171859 by Third Sun Productions
Replied by Third Sun Productions on topic SEF url's and menu
Ha - yes. That does it :) Actually just had to open and re-save them (I guess what the rebuild is *supposed* to do, but didn't) Thanks!

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

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 2 days ago #171862 by Sarrene
Replied by Sarrene on topic SEF url's and menu
This awesome news! Glad it was sorted for you Third Sun.

And thank you Fotis for finding and reporting what the problem was for him. :) For me, as you know it was not a joomla migration for me, but instead an update from older version to the new that messed mine up. But least we now know one reason. Much thanks.

Have a great week,
Sarrene'

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

More
6 years 2 days ago #171866 by JoomlaWorks
Replied by JoomlaWorks on topic SEF url's and menu
There is a Rebuild button in the menu manager (look it up).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 12 hours ago #171881 by Sarrene
Replied by Sarrene on topic SEF url's and menu

Sarrene wrote: ... <snip> ...
I have rebuilt the menu each time, as well as cleared out all caches.
... <snip> ...
:/


Yep that was obviously the first thing I did try, and several times.

But no worries, I got it working on my own last year. I was more concerned about this gent whom had the same issue, but for a different cause. I am glad he got his sorted and you were able to help him out.

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


Powered by Kunena Forum