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

#   The URL of my product detail page

##

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

9 years 11 months ago [\#255331](#255331) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  *[The URL of my product detail page](/forum/31-development/887502-the-url-of-my-product-detail-page#255331 "-- HikaShop version -- : 2.6.4  Hi, I wrote a plugin to show a specific product in my page. It works fine but when I link into the product detail, it hows the url with parameters, like: index.php?option=com&#95;hikashop&amp;view=product&amp;layout=show&amp;cid=761 instead of alias, like it links directory from the hikashop product list, : /index.php/product/772-tv熱銷安全車牌框  what should I do in my plugin, so my linkedin product shows the product name as the alias url. Thanks in advance  Best regards")* was created by *[twscott](/forum/user/43011-twscott "View twscott's Profile")*

-- HikaShop version -- : 2.6.4

Hi,
I wrote a plugin to show a specific product in my page.
It works fine but when I link into the product detail, it hows the url with parameters, like:
index.php?option=com_hikashop&amp;view=product&amp;layout=show&amp;cid=761
instead of alias, like it links directory from the hikashop product list, :
/index.php/product/772-tv熱銷安全車牌框

what should I do in my plugin, so my linkedin product shows the product name as the alias url.
Thanks in advance

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NzUwMi10aGUtdXJsLW9mLW15LXByb2R1Y3QtZGV0YWlsLXBhZ2U/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

9 years 11 months ago [\#255384](#255384) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[The URL of my product detail page](/forum/31-development/887502-the-url-of-my-product-detail-page#255384 "-- HikaShop version -- : 2.6.4  Hi, I wrote a plugin to show a specific product in my page. It works fine but when I link into the product detail, it hows the url with parameters, like: index.php?option=com&#95;hikashop&amp;view=product&amp;layout=show&amp;cid=761 instead of alias, like it links directory from the hikashop product list, : /index.php/product/772-tv熱銷安全車牌框  what should I do in my plugin, so my linkedin product shows the product name as the alias url. Thanks in advance  Best regards")*

Hi,

You should have such code: Code:

include_once(rtrim(JPATH_ADMINISTRATOR,DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_hikashop'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'helper.php'); echo hikashop_contentLink('product&amp;task=show&amp;cid=761&amp;name=tv熱銷安全車牌框&amp;Itemid=XXX');

Where XXX is the id of the default menu item id of your website.

The following user(s) said Thank You: [twscott](/forum/user/43011-twscott "View twscott's Profile")

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

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