Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Better URL for profile pages?

  • Kontrive
  • Kontrive
  • OFFLINE
  • Posts: 19
  • Thanks: 3
  • Karma: 0
1 year 3 months ago #335147 by Kontrive
Better URL for profile pages? was created by Kontrive
Currently, when someone views their own profile, the url is:

domain.com/component/comprofiler/userprofile

Is there a way to make this:

domain.com/username

If someone tried to share a link to their own profile, it wouldn't work currently

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 year 3 months ago #335149 by krileon
Replied by krileon on topic Better URL for profile pages?
You'd have to create a custom 404 redirect to do that. Joomla needs to know where a user is going and /username doesn't tell Joomla anything. So you'll always have a menu alias in profile URLs. So if you create a public Joomla menu item to CBs profile page then you'll have the following URL.

domain.com/menu-alias/username

The menu-alias tells Joomla they are trying to reach CBs profile page. So for example if your menu item has a menu alias of "profile" you'd have the following.

domain.com/profile/username

Which is exactly what we have here at Joomlapolis. For example my profile URL is as follows.

www.joomlapolis.com/profile/krileon

As for the username in the URL that can be customized using the alias field in CB > Field Management.


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.
The following user(s) said Thank You: Kontrive

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

  • Kontrive
  • Kontrive
  • OFFLINE
  • Posts: 19
  • Thanks: 3
  • Karma: 0
1 year 3 months ago #335151 by Kontrive
Replied by Kontrive on topic Better URL for profile pages?
Thanks very much for taking the time to offer such a comprehensive explanation - I appreciate it :)
The following user(s) said Thank You: krileon

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

  • Kontrive
  • Kontrive
  • OFFLINE
  • Posts: 19
  • Thanks: 3
  • Karma: 0
1 year 3 months ago - 1 year 3 months ago #335154 by Kontrive
Replied by Kontrive on topic Better URL for profile pages?
I know this will be out of the scope of your support, but if you could just point me in the right direction...

I've got the URL sorted out now, apart from when I am using the JLex Comment plugin. In its comment section, if a username is clicked, it goes to the full profile URL, not the shortened one (component/comprofiler/userprofile/username instead of profile/username).

Could you just let me know if the solution to this will be either Community Builder related, or something with the JLex plugin?

Thank you! :)
Last edit: 1 year 3 months ago by Kontrive. Reason: typo

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 year 3 months ago #335155 by krileon
Replied by krileon on topic Better URL for profile pages?
My guess is your 3rd party extension isn't properly building the profile URL. We've no control over what 3rd party extensions do, sorry. If you want a article commenting solution that truly integrates with CB I recommend CB Activity.


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.
The following user(s) said Thank You: Kontrive

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

  • Kontrive
  • Kontrive
  • OFFLINE
  • Posts: 19
  • Thanks: 3
  • Karma: 0
1 year 3 months ago #335156 by Kontrive
Replied by Kontrive on topic Better URL for profile pages?
That's great advice - I'll certainly look into that :) Thanks again for your help!

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

Moderators: beatnantkrileon
Powered by Kunena Forum