1. sfb
  2. General
  3. Saturday, March 30 2019, 01:35 PM
Hi There,

When I create -> Easy Profile » User Profile -> in the main menu and visit the link, I see my profile, but the URL given is the same menu alias for all users.

How can I change this so when a logged in user visits this menu item, it shows his personal profile URL instead of the menu alias?

So, for example, instead of menu url:

https://socialnetwork.easy-profile.com/profile.html

It shows or gets re-directed to

https://socialnetwork.easy-profile.com/profile/my-username.html

Thanks
admin Accepted Answer
Admin
Hi,
this is a normal behavior. URLs like https://socialnetwork.easy-profile.com/profile.html are URL of current user profile page.

The only way to make this is to change the Easy Profile source code to apply a redirect to the preferred URL.
Do you are interested to this modification? If yes then you need to apply it every Easy Profile update. Please let me know we will send you the code changes.
  1. more than a month ago
  2. General
  3. # 1
sfb Accepted Answer
Pro
Hi There,

Thanks for your reply.

Yes, I would like to change this as it is essential to my site concept.

Just to be clear, the URL will be redirected to the profile of any logged in user, correct?
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
Just to be clear, the URL will be redirected to the profile of any logged in user, correct?
Yes.

We will come back with the code changes as soon as possible ;) (about some hours)
  1. more than a month ago
  2. General
  3. # 3
admin Accepted Answer
Admin
Hi,
try to replace file at /components/com_jsn/controller.php with attached file (unzip first).

Basically it is the original file with added following code at line 37:
if(JFactory::getApplication()->input->get('id')==null && !$user->guest)
JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_jsn&view=profile&id='.$user->id ,false));
Attachments (1)
  1. more than a month ago
  2. General
  3. # 4
sfb Accepted Answer
Pro
That's great! Will try it out.

Thanks a lot for this!
  1. more than a month ago
  2. General
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.