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

#   Back link problem after sending a contact request

##

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

Less More

- Posts: 3
- Thank you received: 1
-
-

12 years 5 months ago -  12 years 5 months ago [\#156364](#156364) by [danielo](/forum/user/32670-danielo "View danielo's Profile")  *[Back link problem after sending a contact request](/forum/26-product-category-display/868287-back-link-problem-after-sending-a-contact-request#156364 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.1 -- PHP version -- : 5..5  I encountered a problem in following situation:  -product title has special characters (e.g.: Ø) -product alias is set without special characters -sef urls are activated  After sending a request via the &quot;Contact us for more information&quot; button, I get following confirmation dialog: ----- Message  Your request has been sent successfully  Click here to go back to the product page ----- The problem is that the &quot;Click here&quot; link has the product title with Ø replaced by o, so if I click I get the message &quot;Product not found&quot;.  Anyone can reproduce this error or has solution for it?  Thanks Daniel")* was created by *[danielo](/forum/user/32670-danielo "View danielo's Profile")*

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.1
-- PHP version -- : 5..5

I encountered a problem in following situation:

-product title has special characters (e.g.: Ø)
-product alias is set without special characters
-sef urls are activated

After sending a request via the "Contact us for more information" button, I get following confirmation dialog:

---

Message

Your request has been sent successfully

Click here to go back to the product page

---

The problem is that the "Click here" link has the product title with Ø replaced by o, so if I click I get the message "Product not found".

Anyone can reproduce this error or has solution for it?

Thanks
Daniel

Last edit: 12 years 5 months ago by [danielo](/forum/user/32670-danielo "View danielo's Profile").

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

12 years 5 months ago [\#156393](#156393) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Back link problem after sending a contact request](/forum/26-product-category-display/868287-back-link-problem-after-sending-a-contact-request#156393 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.1 -- PHP version -- : 5..5  I encountered a problem in following situation:  -product title has special characters (e.g.: Ø) -product alias is set without special characters -sef urls are activated  After sending a request via the &quot;Contact us for more information&quot; button, I get following confirmation dialog: ----- Message  Your request has been sent successfully  Click here to go back to the product page ----- The problem is that the &quot;Click here&quot; link has the product title with Ø replaced by o, so if I click I get the message &quot;Product not found&quot;.  Anyone can reproduce this error or has solution for it?  Thanks Daniel")*

Hi,

Generally with SEF urls what is important are the ids. the url should looks like: http:/mywebsite.com/product/15-product-name.
Are you still using IDs in the urls ?
The problem seem to come from the controller product "components/com_hikashop/controllers/product.php" function "send_email()". Thanks to try to use for testing purpose: Code:

$app-&gt;enqueueMessage(JText::sprintf('CLICK_HERE_TO_GO_BACK_TO_PRODUCT',hikashop_completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.'&amp;name='.$product-&gt;product_alias.$url_itemid)));

Instead of: Code:

$app-&gt;enqueueMessage(JText::sprintf('CLICK_HERE_TO_GO_BACK_TO_PRODUCT',hikashop_completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.'&amp;name='.$product-&gt;alias.$url_itemid)));

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

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

Less More

- Posts: 3
- Thank you received: 1
-
-

12 years 5 months ago [\#156484](#156484) by [danielo](/forum/user/32670-danielo "View danielo's Profile")  Replied by *[danielo](/forum/user/32670-danielo "View danielo's Profile")* on topic *[Back link problem after sending a contact request](/forum/26-product-category-display/868287-back-link-problem-after-sending-a-contact-request#156484 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.1 -- PHP version -- : 5..5  I encountered a problem in following situation:  -product title has special characters (e.g.: Ø) -product alias is set without special characters -sef urls are activated  After sending a request via the &quot;Contact us for more information&quot; button, I get following confirmation dialog: ----- Message  Your request has been sent successfully  Click here to go back to the product page ----- The problem is that the &quot;Click here&quot; link has the product title with Ø replaced by o, so if I click I get the message &quot;Product not found&quot;.  Anyone can reproduce this error or has solution for it?  Thanks Daniel")*

Hi Xavier,

this works but I lost SEF urls so I would be http:/mywebsite.com/product/15-

I did some more investigations and found out that this problem **only** occurs if i use products **with characteristics**.

In this case the product_id (cid in the url) is the one of the variant but the alias becomes the product name(!) of the main form.

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

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

Less More

- Posts: 3
- Thank you received: 1
-
-

12 years 5 months ago -  12 years 5 months ago [\#156519](#156519) by [danielo](/forum/user/32670-danielo "View danielo's Profile")  Replied by *[danielo](/forum/user/32670-danielo "View danielo's Profile")* on topic *[Back link problem after sending a contact request](/forum/26-product-category-display/868287-back-link-problem-after-sending-a-contact-request#156519 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.1 -- PHP version -- : 5..5  I encountered a problem in following situation:  -product title has special characters (e.g.: Ø) -product alias is set without special characters -sef urls are activated  After sending a request via the &quot;Contact us for more information&quot; button, I get following confirmation dialog: ----- Message  Your request has been sent successfully  Click here to go back to the product page ----- The problem is that the &quot;Click here&quot; link has the product title with Ø replaced by o, so if I click I get the message &quot;Product not found&quot;.  Anyone can reproduce this error or has solution for it?  Thanks Daniel")*

Okay, everything works fine after replacing
Code:

$app-&gt;enqueueMessage(JText::sprintf('CLICK_HERE_TO_GO_BACK_TO_PRODUCT',hikashop_completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.'&amp;name='.$product-&gt;alias.$url_itemid)));

with Code:

if($product-&gt;product_type=='variant'){ $alias = $parentProduct-&gt;alias; }else{ $alias = $product-&gt;alias; } $app-&gt;enqueueMessage(JText::sprintf('CLICK_HERE_TO_GO_BACK_TO_PRODUCT',hikashop_completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.'&amp;name='.$alias.$url_itemid)));

Last edit: 12 years 5 months ago by [danielo](/forum/user/32670-danielo "View danielo's Profile").

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

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

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

[](#top)
