COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- latest sh404sef & K2 - Aliases not used when generating SEF URLs
latest sh404sef & K2 - Aliases not used when generating SEF URLs
- Olivier Karfis
-
Topic Author
- Offline
- Elite Member
Using K2 2.4.1, Joomla 1.5.20 and the latest sh404sef (v. 2.1.4.734).
Even though "Use category alias", "Use section alias" and "Use Title Alias" are all turned on in the sh404 Extensions Configuration panel, all URLs generated for K2 items disregard the alias field and use the title field instead. Aliases are correctly used when using Joomla SEF just not with sh404.
Trying to decipher the com_k2.php file in the sef_ext folder but I'm afraid this is beyond my limited knowledge of PHP. This is putting a complete freeze on my site conversion to K2 &K2Mart :-(
--Olivier
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
Topic Author
- Offline
- Elite Member
Anybody had an idea how to get around this?
Elefteris, could you confirm if this a bug or as designed behavior?
Thanks for any help you can provide. My K2 Mart store project is completely stuck :-(
--Olivier
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
Topic Author
- Offline
- Elite Member
I'll check it out and report back.
Lefteris Kavadas said:Hi. This have been posted again. We modified the code to grab the alias instead of the title. You can try the SVN version and give us some more feedback on this. Thanks.
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
Topic Author
- Offline
- Elite Member
(I know there was a reason that I voted for K2 for the editor's pick and I paid for 3 of your extensions :-)
Thanks again for the quick turnaround!
--Olivier
Lefteris Kavadas said:Hi. This have been posted again. We modified the code to grab the alias instead of the title. You can try the SVN version and give us some more feedback on this. Thanks.
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Anything Digital
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
Topic Author
- Offline
- Elite Member
V-man said:So K2 is now respecting the settings in sh404SEF or always taking the alias?
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Brett Adkins
-
- Offline
- Junior Member
- Posts: 23
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
Topic Author
- Offline
- Elite Member
571
1 file
12:41 - lefteris.kavadas
Fixed issue with SH404 extension. Now category alias is added on the URL instead of title.
M /trunk/K2/components/com_k2/sef_ext/com_k2.php
--Olivier
Brett Adkins said:Is the trunk 571 mentioned above available here: getk2.org/svnDownload.php
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Chad Windnagle
-
- Offline
- New Member
- Posts: 2
Running K2 and sh404sef and ran into an issue where item titles in K2 containing a period (which get changed to a dash in the alias) were bringing up a 404. Used the SVN ext_sef file to my K2 install and it fixed the issue by grabbing the alias instead of the title.
Please Log in or Create an account to join the conversation.
- Daphne Christoforidou
-
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
Topic Author
- Offline
- Elite Member
Did you make sure to purge your sh404 URLs after the change? It works on my site with the SVN version of the sef router. See www.frenchtoday.com/a-moi-paris/a-moi-paris-chapitre-01, the category name title is actually: "A Moi Paris - a Beginner's Novel/Workbook", the alias is a-moi-paris
I'm using the "Show last category" in the sh404 K2 parameters and I'm using K2 2.4.1 & sh404 2.1.5.746
Also one more thing. Were these categories imported via the "Import Joomla articles" function? If you did that, then the category aliases get regenerated and therefore don't keep their custom aliases from the Joomla side (I believe an import after updating the Sef router does actually work but I've not verified it myself).
--Olivier
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Daphne Christoforidou
-
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
Topic Author
- Offline
- Elite Member
Daphne Christoforidou said:Oh thank you so much ! I did the most common stupid thing ever: imported sections and categories and forgot to change the aliases. Although I did it for the articles i totally skipped sections and categories. Thanks for your answer, I was about to give up and uninstall sh404sef. Sometimes you get so stuck that you need someone to point you to the obvious direction :)
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- latest sh404sef & K2 - Aliases not used when generating SEF URLs