- Posts: 36
COMMUNITY FORUM
Clean url without category
- kalixo
-
Topic Author
- Offline
- Junior Member
I set everything to avoid category in my url's, but the category still apperas in link.
Is it possible and safe to remove category from url link?
I wish to have clean url's "domain.com/article456.html", but I have "domain.com/category/article456.html".
Do I need to use external component to trim the category from the link or is it spossible to do that by K2 natively?
Thanks in advance,
best ragars,
Kalixo
Please Log in or Create an account to join the conversation.
- Vlad
-
- Offline
- Junior Member
- Posts: 23
Go to K2 parameters, then go to advanced tab. Scroll down to Advanced SEF settings.
Click NO for category ID in URL.
I think that should work.
Please Log in or Create an account to join the conversation.
- kalixo
-
Topic Author
- Offline
- Junior Member
- Posts: 36
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This has been resolved in the upcoming 2.7 version.
You can get the DEV version from: getk2.org/assets/get/
Please Log in or Create an account to join the conversation.
- kalixo
-
Topic Author
- Offline
- Junior Member
- Posts: 36
thank you very much, so it's not possible yet.
Can you tell me how far is it from the official release? Is it a big risk to install it?
Best regards,
Kalixo
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Not a risk. Backup first in order to ensure that nothing can go wrong.
Please Log in or Create an account to join the conversation.
- kalixo
-
Topic Author
- Offline
- Junior Member
- Posts: 36
Thanks again, and hope to hear from you soon (regarding my future posts ;))
Cheers,
Kalixo
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Let me know if there is any issue with 2.7
Please Log in or Create an account to join the conversation.
- kalixo
-
Topic Author
- Offline
- Junior Member
- Posts: 36
It seems that DEV version works great, and what is also important it looks great :)
But I still don't know how to get rid of the category from url :(
Could you please advise how to do it?
Thnaks,
Kalixo
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Just make sure that the option "Prefix for item URLs" is set to "None".
Please Log in or Create an account to join the conversation.
- kalixo
-
Topic Author
- Offline
- Junior Member
- Posts: 36
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.
- kalixo
-
Topic Author
- Offline
- Junior Member
- Posts: 36
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
K2 Advanced SEF is designed to work when a resource ( a K2 item in your case ) is not resolved in any menu link ( there is no menu link to that item OR it's category ).
In that case instead of having menu links like component/k2/xxxx you have the option to either use the category alias or a custom alias to replace the "component/k2" part.
Please Log in or Create an account to join the conversation.
- kalixo
-
Topic Author
- Offline
- Junior Member
- Posts: 36
Your answear finally resovles my doubts.
Thank you!
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.
- Joe Campbell
-
- Offline
- Platinum Member
- Posts: 438
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
A prefix is needed in order to work properly. You can remove the prefix entirely by mapping the category into a menu item.
Please Log in or Create an account to join the conversation.
- Joe Campbell
-
- Offline
- Platinum Member
- Posts: 438
Is this a limitation for all non com__content extensions?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
It depends on how extensions are built.
Please Log in or Create an account to join the conversation.