When updating profile data lost "item ID"

  • bernabe28
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 6 months ago #88072 by bernabe28
Hello,
When updating user data via the button "Update my details" the URL is modified and loses ITEM ID

For example, the original user profile URL is this:
00.directoriotiendasonline.com/index.php...w=profile&Itemid=720

But clicking the button "Update" the url changes to:
00.directoriotiendasonline.com/index.php...ofile&Itemid=720

How I can do to make the URL does not change the string "&" with "& amp;" ?
I searched the files but I get correct

You can help me?
Thank you very much for everything

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

More
8 years 6 months ago #88088 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic When updating profile data lost "item ID"
Hi

You can customize the code. Follow the instructions below and it should work:

1. components/com_osmembership/controller/profile.php

2. Find this line of code
Code:
$this->setRedirect(JRoute::_('index.php?option=com_osmembership&view=profile&Itemid=' . $Itemid), $message, $type);

3. Change it to
Code:
$this->setRedirect(JRoute::_('index.php?option=com_osmembership&view=profile&Itemid=' . $Itemid, false), $message, $type);

After that, it will work as expected

Regards,

Tuan

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

  • bernabe28
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 6 months ago #88136 by bernabe28
Replied by bernabe28 on topic When updating profile data lost "item ID"
Hello,
I understand what you say but I could not fix it, anyway
Thank you very much for your help
Regards

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

More
8 years 6 months ago #88161 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic When updating profile data lost "item ID"
Could not fix? You can submit a support ticket sending us super admin account of the site. We can help modifying code for you, then

Tuan

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

  • bernabe28
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 6 months ago #88229 by bernabe28
Replied by bernabe28 on topic When updating profile data lost "item ID"
Hello Tuan,
I opened support ticket on this issue

Thank you very much for your help
Regards

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

  • bernabe28
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 6 months ago #88270 by bernabe28
Replied by bernabe28 on topic When updating profile data lost "item ID"
Hello Tuan,
Perfect, now it works perfectly,
You offer excellent support service helping to solve the doubts and problems of component

Thank you very much for your help
regards

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

More
8 years 6 months ago #88349 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic When updating profile data lost "item ID"
Great. Thanks for confirming (and for your nice words about it)

Regards,

Tuan

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

  • bernabe28
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 6 months ago - 8 years 6 months ago #88669 by bernabe28
Replied by bernabe28 on topic When updating profile data lost "item ID"
Hello Tuan,
It occurs again when accessed as a registered user but has no contracted subscription

Follow these steps:

Step1:
00.directoriotiendasonline.com/index.php...iew=login&Itemid=102
Clic in menú "Login"
User: user1@demo.com
Pass: user1

Step2:
Clic in menú "Mi cuenta"

Step3:
The URL so bad this: Appears "& amp;" instead of "&"
00.directoriotiendasonline.com/index.php...;id=0&Itemid=367

How can I solve that


On the other hand it is possible to redirect the user registered to the "user profile pro mebebership" although that has no contracted subscription and you see the message there "has no contracted subscription"?

Thank you very much for your help
Regards
Last edit: 8 years 6 months ago by bernabe28.

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