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

#   Contact us Button adds "administrator" into URL

##

- **[gteigland](/forum/user/4840-gteigland "View gteigland's Profile")**
- [![gteigland's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4840-gteigland "View gteigland's Profile") Topic Author
- [ Offline](/forum/user/4840-gteigland)

Less More

- Posts: 41
- Thank you received: 0
-
-

13 years 10 months ago [\#82619](#82619) by [gteigland](/forum/user/4840-gteigland "View gteigland's Profile")  *[Contact us Button adds "administrator" into URL](/forum/3-bug-report/76868-contact-us-button-adds-administrator-into-url#82619 "This is odd but when customers use the contact button and we receive the email it adds &quot;admininstrator into the url&quot;  For example from the email. Link to the product page   You will notice that&quot;administrator&quot; therefore not allowing he user to access the view the product on the site by just clicking...  Could you at least point me to the file that renders that url so I can take a look at it?  Thanks!")* was created by *[gteigland](/forum/user/4840-gteigland "View gteigland's Profile")*

This is odd but when customers use the contact button and we receive the email it adds "admininstrator into the url"

For example from the email.
Link to the product page &lt;[ www.furnitureandthings.com/administrator...mp;task=edit&amp;cid](http://www.furnitureandthings.com/administrator/index.php?option=com_hikashop&amp;ctrl=product&amp;task=edit&amp;cid)[]=1223&amp;amp;Itemid=389&gt;

You will notice that"administrator" therefore not allowing he user to access the view the product on the site by just clicking...

Could you at least point me to the file that renders that url so I can take a look at it?

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Njg2OC1jb250YWN0LXVzLWJ1dHRvbi1hZGRzLWFkbWluaXN0cmF0b3ItaW50by11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#82717](#82717) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Contact us Button adds "administrator" into URL](/forum/3-bug-report/76868-contact-us-button-adds-administrator-into-url#82717 "This is odd but when customers use the contact button and we receive the email it adds &quot;admininstrator into the url&quot;  For example from the email. Link to the product page   You will notice that&quot;administrator&quot; therefore not allowing he user to access the view the product on the site by just clicking...  Could you at least point me to the file that renders that url so I can take a look at it?  Thanks!")*

This url is in the view "product / show_default" in HikaShop &gt; Display &gt; Views.
The code you are looking for is: Code:

&lt;div id="hikashop_product_contact_main" class="hikashop_product_contact_main"&gt; &lt;?php $contact = $this-&gt;config-&gt;get('product_contact',0); if (hikashop_level(1) &amp;&amp; ($contact == 2 &#124;&#124; ($contact == 1 &amp;&amp; !empty ($this-&gt;element-&gt;product_contact)))) { $empty = ''; $params = new HikaParameter($empty); echo $this-&gt;cart-&gt;displayButton(JText :: _('CONTACT_US_FOR_INFO'), 'contact_us', $params, hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;row-&gt;product_id), 'window.location=\'' . hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;row-&gt;product_id) . '\';return false;'); } ?&gt; &lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Njg2OC1jb250YWN0LXVzLWJ1dHRvbi1hZGRzLWFkbWluaXN0cmF0b3ItaW50by11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[gteigland](/forum/user/4840-gteigland "View gteigland's Profile")**
- [![gteigland's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4840-gteigland "View gteigland's Profile") Topic Author
- [ Offline](/forum/user/4840-gteigland)

Less More

- Posts: 41
- Thank you received: 0
-
-

13 years 10 months ago [\#83043](#83043) by [gteigland](/forum/user/4840-gteigland "View gteigland's Profile")  Replied by *[gteigland](/forum/user/4840-gteigland "View gteigland's Profile")* on topic *[Contact us Button adds "administrator" into URL](/forum/3-bug-report/76868-contact-us-button-adds-administrator-into-url#83043 "This is odd but when customers use the contact button and we receive the email it adds &quot;admininstrator into the url&quot;  For example from the email. Link to the product page   You will notice that&quot;administrator&quot; therefore not allowing he user to access the view the product on the site by just clicking...  Could you at least point me to the file that renders that url so I can take a look at it?  Thanks!")*

Unfortunately I can't figure this out. The code is the same but when I use the contact button and receive the email it adds /administrator/ in the url after the domain ie. .com... So the link is not valid within the email.

Any ideas of how to fix this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Njg2OC1jb250YWN0LXVzLWJ1dHRvbi1hZGRzLWFkbWluaXN0cmF0b3ItaW50by11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 86555
- Thank you received: 14304
-
-

13 years 10 months ago [\#83233](#83233) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Contact us Button adds "administrator" into URL](/forum/3-bug-report/76868-contact-us-button-adds-administrator-into-url#83233 "This is odd but when customers use the contact button and we receive the email it adds &quot;admininstrator into the url&quot;  For example from the email. Link to the product page   You will notice that&quot;administrator&quot; therefore not allowing he user to access the view the product on the site by just clicking...  Could you at least point me to the file that renders that url so I can take a look at it?  Thanks!")*

Since you're the administrator of the shop you should be able to access the link of the contact email.
That should not be a problem.
If you want to change the link in the contact email, you need to edit the contact email via the menu System-&gt;Emails and change the link there:
$url = JRoute::_('administrator/index.php?option=com_hikashop&amp;ctrl=product&amp;task=edit&amp;cid[]='.$data-&gt;product-&gt;product_id.$url_itemid,false,true);

Maybe something like that:
$url = JRoute::_('index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid='.$data-&gt;product-&gt;product_id.$url_itemid,false,true);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Njg2OC1jb250YWN0LXVzLWJ1dHRvbi1hZGRzLWFkbWluaXN0cmF0b3ItaW50by11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[gteigland](/forum/user/4840-gteigland "View gteigland's Profile")**
- [![gteigland's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4840-gteigland "View gteigland's Profile") Topic Author
- [ Offline](/forum/user/4840-gteigland)

Less More

- Posts: 41
- Thank you received: 0
-
-

13 years 10 months ago [\#83552](#83552) by [gteigland](/forum/user/4840-gteigland "View gteigland's Profile")  Replied by *[gteigland](/forum/user/4840-gteigland "View gteigland's Profile")* on topic *[Contact us Button adds "administrator" into URL](/forum/3-bug-report/76868-contact-us-button-adds-administrator-into-url#83552 "This is odd but when customers use the contact button and we receive the email it adds &quot;admininstrator into the url&quot;  For example from the email. Link to the product page   You will notice that&quot;administrator&quot; therefore not allowing he user to access the view the product on the site by just clicking...  Could you at least point me to the file that renders that url so I can take a look at it?  Thanks!")*

Thanks very helpful. Almost there just one little issue.

It adds "https" into the url. Usually that would be good with an e-commerce site but we're just using hikashop as a catalog to browse.

I can't figure out how to change the https to just regular http that shows up in the link of the email since we don't have an SSL certificate.

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Njg2OC1jb250YWN0LXVzLWJ1dHRvbi1hZGRzLWFkbWluaXN0cmF0b3ItaW50by11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#83555](#83555) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Contact us Button adds "administrator" into URL](/forum/3-bug-report/76868-contact-us-button-adds-administrator-into-url#83555 "This is odd but when customers use the contact button and we receive the email it adds &quot;admininstrator into the url&quot;  For example from the email. Link to the product page   You will notice that&quot;administrator&quot; therefore not allowing he user to access the view the product on the site by just clicking...  Could you at least point me to the file that renders that url so I can take a look at it?  Thanks!")*

Hi,

So you can just **$url = str\_replace('https://', 'http://', $url);**, no ?

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Njg2OC1jb250YWN0LXVzLWJ1dHRvbi1hZGRzLWFkbWluaXN0cmF0b3ItaW50by11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[gteigland](/forum/user/4840-gteigland "View gteigland's Profile")**
- [![gteigland's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4840-gteigland "View gteigland's Profile") Topic Author
- [ Offline](/forum/user/4840-gteigland)

Less More

- Posts: 41
- Thank you received: 0
-
-

13 years 10 months ago -  13 years 10 months ago [\#83560](#83560) by [gteigland](/forum/user/4840-gteigland "View gteigland's Profile")  Replied by *[gteigland](/forum/user/4840-gteigland "View gteigland's Profile")* on topic *[Contact us Button adds "administrator" into URL](/forum/3-bug-report/76868-contact-us-button-adds-administrator-into-url#83560 "This is odd but when customers use the contact button and we receive the email it adds &quot;admininstrator into the url&quot;  For example from the email. Link to the product page   You will notice that&quot;administrator&quot; therefore not allowing he user to access the view the product on the site by just clicking...  Could you at least point me to the file that renders that url so I can take a look at it?  Thanks!")*

I tried putting the code in but it didn't work. However you help realize how simple the solution really was. So in the string I just added Code:

http://sitedomain.com/

Thanks for your help!

Last edit: 13 years 10 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: The submit on the forum left out "http://". Fixed by moderator

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83Njg2OC1jb250YWN0LXVzLWJ1dHRvbi1hZGRzLWFkbWluaXN0cmF0b3ItaW50by11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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.051 seconds

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