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

#   Order detail url SEF issue

##

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

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 7 months ago [\#198060](#198060) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  *[Order detail url SEF issue](/forum/35-orders-management/876297-order-detail-url-sef-issue#198060 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I've run into a issue where when a registered user receives his order creation notification / order notification, the link to the order details page looks like this:  Instead of our SEF url, if a user however accesses the order details through our website the url is correct like this:  A second thing that I noticed is that the product URL has also changed, instead of the regular SEF URL the product (in the order details page still) URL displays like this:")* was created by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.10

Hi!

I've run into a issue where when a registered user receives his order creation notification / order notification, the link to the order details page looks like this:
Code:

index.php?option=com_hikashop&amp;ctrl=order&amp;task=show&amp;cid[]=109&amp;Itemid=556

Instead of our SEF url, if a user however accesses the order details through our website the url is correct like this:
Code:

/shop/member-area/order/show/cid-109.html

A second thing that I noticed is that the product URL has also changed, instead of the regular SEF URL the product (in the order details page still) URL displays like this:
Code:

/component/hikashop/cid-2.html

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjI5Ny1vcmRlci1kZXRhaWwtdXJsLXNlZi1pc3N1ZT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#198087](#198087) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Order detail url SEF issue](/forum/35-orders-management/876297-order-detail-url-sef-issue#198087 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I've run into a issue where when a registered user receives his order creation notification / order notification, the link to the order details page looks like this:  Instead of our SEF url, if a user however accesses the order details through our website the url is correct like this:  A second thing that I noticed is that the product URL has also changed, instead of the regular SEF URL the product (in the order details page still) URL displays like this:")*

Hi,

Depending where the email is generating, the SEF might not be fully accessible ; like when you are in the backend and you want to generate a front-end link.
You can't use the Joomla router at this moment because it will try to generate a backend link, not a front-end one.
So in HikaShop we have a function named "hikashop_frontendLink" which is there to help to create a front-end link in a back-end context ; but it does not handle the SEF because of the router.

About the last link, it looks like the URL is generating without any Itemid, so it results a generic SEF url.

Regards,

---

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

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 7 months ago -  11 years 7 months ago [\#198337](#198337) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Order detail url SEF issue](/forum/35-orders-management/876297-order-detail-url-sef-issue#198337 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I've run into a issue where when a registered user receives his order creation notification / order notification, the link to the order details page looks like this:  Instead of our SEF url, if a user however accesses the order details through our website the url is correct like this:  A second thing that I noticed is that the product URL has also changed, instead of the regular SEF URL the product (in the order details page still) URL displays like this:")*

> Jerome wrote: Hi,
> You can't use the Joomla router at this moment because it will try to generate a backend link, not a front-end one.
> So in HikaShop we have a function named "hikashop\_frontendLink" which is there to help to create a front-end link in a back-end context ; but it does not handle the SEF because of the router.

So, I would have to either remove / change the link in the e-mail or hardcode the change I want into the hikashop_frontendLink?

> About the last link, it looks like the URL is generating without any Itemid, so it results a generic SEF url.

The URL's are generated from / by Hikashop itself, they are accessed through the Hikashop User control panel and then in "View orders", so I don't know why they are without a itemid, all though we also had a similar issue with our checkout links, so I don't know if there is a correlation

Last edit: 11 years 7 months ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjI5Ny1vcmRlci1kZXRhaWwtdXJsLXNlZi1pc3N1ZT90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

11 years 7 months ago [\#198465](#198465) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order detail url SEF issue](/forum/35-orders-management/876297-order-detail-url-sef-issue#198465 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I've run into a issue where when a registered user receives his order creation notification / order notification, the link to the order details page looks like this:  Instead of our SEF url, if a user however accesses the order details through our website the url is correct like this:  A second thing that I noticed is that the product URL has also changed, instead of the regular SEF URL the product (in the order details page still) URL displays like this:")*

Hi,

1. Why is that a problem to you ? The fact that the link is no SEFed in the email has no incidence on your SEO. I don't see any problem with that.
If you want to remove/change it, you can edit the email via the menu System&gt;Emails, and yes, you'll be able to remove/change it. But no need to edit the hikashop_frontendLink function.
Add such line at the beginning of the preload area and that should do the trick:
&lt;?php $data-&gt;order_url = '/shop/member-area/order/show/cid-'.$data-&gt;order_id.'.html'; ?&gt;

2. The URLs are partly generated by HikaShop.
The component/hikashop part of the URLs is something added by the router of Joomla to the URL because there is no Itemid parameter in the URL and that happens because there is no menu set or because it is set with a menu item of a different extension than HikaShop and Joomla needs the add that piece to have the routing system work properly.
On the checkout, you can avoid that by having a menu item of the type hikashop selected in the "force a menu on checkout" option of the HikaShop configuration.
On the user control panel, if you access it from a menu item of the type "hikashop user control panel" that should not happen.
So basically, it's a matter of how you configure your menu items.

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 7 months ago [\#198500](#198500) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Order detail url SEF issue](/forum/35-orders-management/876297-order-detail-url-sef-issue#198500 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I've run into a issue where when a registered user receives his order creation notification / order notification, the link to the order details page looks like this:  Instead of our SEF url, if a user however accesses the order details through our website the url is correct like this:  A second thing that I noticed is that the product URL has also changed, instead of the regular SEF URL the product (in the order details page still) URL displays like this:")*

Hi!

> 1\. Why is that a problem to you ? The fact that the link is no SEFed in the email has no incidence on your SEO. I don't see any problem with that.
> If you want to remove/change it, you can edit the email via the menu System&gt;Emails, and yes, you'll be able to remove/change it. But no need to edit the hikashop\_frontendLink function..

It's not a problem as such, it springs more from a need to know how much I can alter without having to go into the core files of hikashop, though I've realized that I should have used a different kind of wording in my posts.

> On the user control panel, if you access it from a menu item of the type "hikashop user control panel" that should not happen.
> So basically, it's a matter of how you configure your menu items.

The "shop/member-area" is of the type "hikashop user control panel".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjI5Ny1vcmRlci1kZXRhaWwtdXJsLXNlZi1pc3N1ZT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#198778](#198778) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Order detail url SEF issue](/forum/35-orders-management/876297-order-detail-url-sef-issue#198778 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I've run into a issue where when a registered user receives his order creation notification / order notification, the link to the order details page looks like this:  Instead of our SEF url, if a user however accesses the order details through our website the url is correct like this:  A second thing that I noticed is that the product URL has also changed, instead of the regular SEF URL the product (in the order details page still) URL displays like this:")*

Hi,

It will be useful to have a link to your store in order to understand exactly from where the URL are coming from.
Even if you're in the HikaShop user control panel page ; if the link is coming from a product listing module where the "menu" is not set or set using a wrong menu ; it could generate this kind of issue.
But because we currently don't know where the link really are ; it's difficult to gave you a precise (and useful) answer.

Regards,

---

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

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 7 months ago [\#198805](#198805) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Order detail url SEF issue](/forum/35-orders-management/876297-order-detail-url-sef-issue#198805 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I've run into a issue where when a registered user receives his order creation notification / order notification, the link to the order details page looks like this:  Instead of our SEF url, if a user however accesses the order details through our website the url is correct like this:  A second thing that I noticed is that the product URL has also changed, instead of the regular SEF URL the product (in the order details page still) URL displays like this:")*

Hi!

[ www.earmaster.com/shop.html](http://www.earmaster.com/shop.html)

We launched our shop yesterday, so you can also access it by clicking the "buy now" button

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjI5Ny1vcmRlci1kZXRhaWwtdXJsLXNlZi1pc3N1ZT90bXBsPW1hcmtkb3du) 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.065 seconds

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