Keyword

Clean url without category

  • kalixo
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #148869 by kalixo
Clean url without category was created by kalixo
Dear all,
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.

More
9 years 6 months ago #148870 by Vlad
Replied by Vlad on topic Clean url without category
Hi,

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
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #148872 by kalixo
Replied by kalixo on topic Clean url without category
Ji Vlad,
thank you for your quick response!
I tried that, but it doesn't work :(

Below please find my all SEF settings from K2 Advanced Setttings.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 6 months ago #148875 by Krikor Boghossian
Replied by Krikor Boghossian on topic Clean url without category
Hello Kalixo,

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
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #148877 by kalixo
Replied by kalixo on topic Clean url without category
Hello Master Krikor,
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 6 months ago #148881 by Krikor Boghossian
Replied by Krikor Boghossian on topic Clean url without category
Hehehe :)
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
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #148884 by kalixo
Replied by kalixo on topic Clean url without category
Ok :)
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 6 months ago #148901 by Krikor Boghossian
Replied by Krikor Boghossian on topic Clean url without category
Will do kalixo :)

Let me know if there is any issue with 2.7

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

  • kalixo
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #148986 by kalixo
Replied by kalixo on topic Clean url without category
Hi again Mr. Krikor!
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.

More
9 years 6 months ago #149003 by Lefteris
Replied by Lefteris on topic Clean url without category
@kalixo

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
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #149020 by kalixo
Replied by kalixo on topic Clean url without category
@Lefteris, It was and it is set as NONE :(

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

More
9 years 6 months ago #149038 by Lefteris
Replied by Lefteris on topic Clean url without category
Is there a link to your site?

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

  • kalixo
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #149040 by kalixo
Replied by kalixo on topic Clean url without category
yes darmolandia(dot)pl

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

More
9 years 6 months ago #149054 by Lefteris
Replied by Lefteris on topic Clean url without category
You cannot have URLs like www.yoursite.com/xxxx for K2 items ( or any other extension in Joomla!). The only way to do this is to create menu links for each item or use a SEF extension like SH404SEF.

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
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #149055 by kalixo
Replied by kalixo on topic Clean url without category
Ok, thank you very much for the information. I haven't found that.

Your answear finally resovles my doubts.

Thank you!

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

More
9 years 6 months ago #149067 by Lefteris
Replied by Lefteris on topic Clean url without category
You are welcome.

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

More
9 years 4 months ago #150161 by Joe Campbell
Replied by Joe Campbell on topic Clean url without category
I just loaded v2.7 on my staging site - why is there no option to remove Prefix for Category URLs?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #150174 by Krikor Boghossian
Replied by Krikor Boghossian on topic Clean url without category
Hello Joe,

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.

More
9 years 4 months ago #150182 by Joe Campbell
Replied by Joe Campbell on topic Clean url without category
Ok - Thanks for the info

Is this a limitation for all non com__content extensions?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #150184 by Krikor Boghossian
Replied by Krikor Boghossian on topic Clean url without category
I wouldn't know actually.
It depends on how extensions are built.

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


Powered by Kunena Forum