Skip to Content Skip to Menu

shorten url

  • 100mile
  • 100mile
  • OFFLINE
  • Posts: 70
  • Thanks: 9
  • Karma: 2
11 months 3 weeks ago #336032 by 100mile
shorten url was created by 100mile
I would like to have shorten urls,  www.site.com/username

I would like to change,  realeasyhub.com/index.php/cb-profile/704-kleskun-springs-north
to the following,  realeasyhub.com/kleskun springs north

I have had this done for me before, however the person would did it now unavailable.
'
Why is this not an automatic thing or have an easy edit in configuration yet.  Seems logical.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
11 months 3 weeks ago #336041 by krileon
Replied by krileon on topic shorten url

Why is this not an automatic thing or have an easy edit in configuration yet. Seems logical.

That's not how Joomla works. Joomla needs to know what component you're trying to navigate to. The menu alias cb-profile lets Joomla find the associated menu item and thus the component you're trying to navigate to. You can however rename that menu items alias to whatever you like. As for the user id prefixing that's due to their username not being URL safe so you can't have just /kleskun unless you restrict what characters people can put in their usernames. You can also use the Profile URL (alias) field to override using username entirely.

Effectively what you're wanting to do will cause usernames to conflict with Joomla menu item navigation. You'll need to implement your own custom URL rewriting behavior to do this. Some Joomla SEO extensions might have support for that though.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum