Skip to Content Skip to Menu

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

Link to profil with CB Content bad redirection

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 9 months ago #260715 by chanteur94
Hi,

When I click on a user in a CBlist, I obtain the link :

www.mywebsite.fr/cb-profile/userprofile/username

Then, if i click on 'my profil' that i create with a cb content (link : <a Href ="index.php?option=com_comprofiler&view=user" > or <a Href =" www.mywebsite.fr/index.php?option=com_comprofiler&view=user " > ), i obtain :

www.mywebsite.fr/cb-profile/userprofile/index.php?option=com_comprofiler&view=user
and it's not correct. (error message, profil doesn't exist)

What's wrong ? why link i put in my cb content are not linked to the root ?

Thank you.

Joomla 3.4 CB 2.0.7

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

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 9 months ago - 9 years 9 months ago #260716 by chanteur94
Replied by chanteur94 on topic Link to profil with CB Content bad redirection
For the moment, iy works with a direct link like <a Href = " www.mywebsite.fr/my-profil/see-my-profil ">
Last edit: 9 years 9 months ago by chanteur94.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 9 months ago #260749 by krileon
It doesn't work because the view you specified doesn't exist. The non-SEF profile URL is as follows.

My Profile:
index.php?option=com_comprofiler&view=userprofile

Users Profile:
index.php?option=com_comprofiler&view=userprofile&user=USER_ID_HERE

If you're using CB Content Bot to allow substitutions in Joomla articles you don't need to do manual construction as we've a substitution for some URLs. Example as follows.

{cb}[cb:url location="profile_view" /]{/cb}

See the below substitution tutorial for further substitution usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


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