[Skip to main content](#vessel-content)

#   How to change the URL of the Edit Profile button

##

- **[rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")**
- [![rodrigo8&#95;4's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile") Topic Author
- [ Offline](/forum/user/14314-rodrigo8-4)

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 4 weeks ago [\#126332](#126332) by [rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")  *[How to change the URL of the Edit Profile button](/forum/33-customers/862549-how-to-change-the-url-of-the-edit-profile-button#126332 "So I changed the buttons description of the cpanel by language override , but I cannot redirect this big buttons to the pages I want.  For example, this is the url of the first button: mysite.com/user-profile/profile?layout=edit  I want to change that to another URL, I tried many redirect plugins and non of them worked.  I looked into every single file and I could find where to insert an href redirection for that button, there is this $onebutton thing that when I change it , then every button of the cpanel goes to that link.  Ideas?")* was created by *[rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")*

So I changed the buttons description of the cpanel by language override , but I cannot redirect this big buttons to the pages I want.

For example, this is the url of the first button: mysite.com/user-profile/profile?layout=edit

I want to change that to another URL, I tried many redirect plugins and non of them worked.

I looked into every single file and I could find where to insert an href redirection for that button, there is this $onebutton thing that when I change it , then every button of the cpanel goes to that link.

Ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjI1NDktaG93LXRvLWNoYW5nZS10aGUtdXJsLW9mLXRoZS1lZGl0LXByb2ZpbGUtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 4 weeks ago [\#126473](#126473) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to change the URL of the Edit Profile button](/forum/33-customers/862549-how-to-change-the-url-of-the-edit-profile-button#126473 "So I changed the buttons description of the cpanel by language override , but I cannot redirect this big buttons to the pages I want.  For example, this is the url of the first button: mysite.com/user-profile/profile?layout=edit  I want to change that to another URL, I tried many redirect plugins and non of them worked.  I looked into every single file and I could find where to insert an href redirection for that button, there is this $onebutton thing that when I change it , then every button of the cpanel goes to that link.  Ideas?")*

Hi,

The view "user &#124; cpanel" display the buttons that the view manage gave him.
You can override the view if you want to change the display, do not display some buttons or add new ones.

We are think about a refactoring of this cpanel view in order to give some kind of "key" for the buttons (and improve the design too).

For the moment I recommend you to use the $oneButton for finding the right button.
The keys are : address, order, cart, wishlist, downloads

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjI1NDktaG93LXRvLWNoYW5nZS10aGUtdXJsLW9mLXRoZS1lZGl0LXByb2ZpbGUtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")**
- [![rodrigo8&#95;4's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile") Topic Author
- [ Offline](/forum/user/14314-rodrigo8-4)

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 4 weeks ago [\#126568](#126568) by [rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")  Replied by *[rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")* on topic *[How to change the URL of the Edit Profile button](/forum/33-customers/862549-how-to-change-the-url-of-the-edit-profile-button#126568 "So I changed the buttons description of the cpanel by language override , but I cannot redirect this big buttons to the pages I want.  For example, this is the url of the first button: mysite.com/user-profile/profile?layout=edit  I want to change that to another URL, I tried many redirect plugins and non of them worked.  I looked into every single file and I could find where to insert an href redirection for that button, there is this $onebutton thing that when I change it , then every button of the cpanel goes to that link.  Ideas?")*

Thank you, but Im not a programmer so I need a little more help.

In what directory do I find this $oneButton ?, because I found it many times.

and, how do I change the $oneButton to change ¨edit user profile¨ URL?

when I changed the $oneButton all the URLs changed, but I only whant to change the url of first button of the user Cpanel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjI1NDktaG93LXRvLWNoYW5nZS10aGUtdXJsLW9mLXRoZS1lZGl0LXByb2ZpbGUtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")**
- [![rodrigo8&#95;4's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile") Topic Author
- [ Offline](/forum/user/14314-rodrigo8-4)

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 4 weeks ago [\#126660](#126660) by [rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")  Replied by *[rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")* on topic *[How to change the URL of the Edit Profile button](/forum/33-customers/862549-how-to-change-the-url-of-the-edit-profile-button#126660 "So I changed the buttons description of the cpanel by language override , but I cannot redirect this big buttons to the pages I want.  For example, this is the url of the first button: mysite.com/user-profile/profile?layout=edit  I want to change that to another URL, I tried many redirect plugins and non of them worked.  I looked into every single file and I could find where to insert an href redirection for that button, there is this $onebutton thing that when I change it , then every button of the cpanel goes to that link.  Ideas?")*

ok, maybe I didn´t explain the issue correctly.

In the user cpanel there are 4 buttons:

-Edit profile
-Address
-Items bought
-Affiliate

I want to change the href of the FIRST button, which right now is something like /joomla-pages-ii/user-profile/profile?layout=edit

Where do I change that link?

I looked everywehere, component, plugins, administrator, where is it?!

- [ ![h02041f2.png](/forum/attachment/12703) ](/forum/attachment/12703 "h02041f2.png") [ ](/forum/attachment/12703?download=1 "h02041f2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjI1NDktaG93LXRvLWNoYW5nZS10aGUtdXJsLW9mLXRoZS1lZGl0LXByb2ZpbGUtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

13 years 4 weeks ago [\#126669](#126669) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to change the URL of the Edit Profile button](/forum/33-customers/862549-how-to-change-the-url-of-the-edit-profile-button#126669 "So I changed the buttons description of the cpanel by language override , but I cannot redirect this big buttons to the pages I want.  For example, this is the url of the first button: mysite.com/user-profile/profile?layout=edit  I want to change that to another URL, I tried many redirect plugins and non of them worked.  I looked into every single file and I could find where to insert an href redirection for that button, there is this $onebutton thing that when I change it , then every button of the cpanel goes to that link.  Ideas?")*

Hi,

As Jerome said you need to modify the code of user/cpanel. There is no point in looking at the options as there is no option to that that URL.

It's not difficult.

Simply: Code:

if($oneButton['image']=='user2') $oneButton['link']='http://my_new_url';

after: Code:

foreach($this-&gt;buttons as $oneButton){

if you change the $oneButton variable without the if, it will do it for all the links of the cpanel. That's what you were missing.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjI1NDktaG93LXRvLWNoYW5nZS10aGUtdXJsLW9mLXRoZS1lZGl0LXByb2ZpbGUtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")**
- [![rodrigo8&#95;4's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile") Topic Author
- [ Offline](/forum/user/14314-rodrigo8-4)

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 4 weeks ago [\#126678](#126678) by [rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")  Replied by *[rodrigo8\_4](/forum/user/14314-rodrigo8-4 "View rodrigo8&#95;4's Profile")* on topic *[How to change the URL of the Edit Profile button](/forum/33-customers/862549-how-to-change-the-url-of-the-edit-profile-button#126678 "So I changed the buttons description of the cpanel by language override , but I cannot redirect this big buttons to the pages I want.  For example, this is the url of the first button: mysite.com/user-profile/profile?layout=edit  I want to change that to another URL, I tried many redirect plugins and non of them worked.  I looked into every single file and I could find where to insert an href redirection for that button, there is this $onebutton thing that when I change it , then every button of the cpanel goes to that link.  Ideas?")*

Thank you ![:)](/media/kunena/emoticons/3.png ":)") , you guys are amazing

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjI1NDktaG93LXRvLWNoYW5nZS10aGUtdXJsLW9mLXRoZS1lZGl0LXByb2ZpbGUtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
