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

#   Add string at the end of HS links...

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 2 months ago -  14 years 2 months ago [\#64085](#64085) by [danielle\_walton](/forum/user/8055-danielle-walton "View danielle&#95;walton's Profile")  *[Add string at the end of HS links...](/forum/4-how-to/64085-add-string-at-the-end-of-hs-links#64085 "Hi, I'm using some javascript to display my joomla pages and it requires all my links to finish with this string  /#!/&#91;somestring&#93;  The menu items are not a problem, they're just external urls written by myself but for inner links, for example, products links from hikashop, I modified .htaccess this way:  RewriteRule .&#42; index.php &#91;C&#93; #(last rule in normal joomla .htaccess, changed from LAST to CHAINED) RewriteRule ^(.&#42;)$ $1/#!/component &#91;R=301,NE,L&#93;  Inner link has its normal text, example:  http://&#91;my&#95;webserver&#93;/index.php/hikashop/product/1-bread/  But, once the link is clicked, browser lands in a page the form I want:  http://&#91;my&#95;webserver&#93;/index.php/hikashop/product/1-bread/#!/component  The problem is, it doesn't load the desired content but it loads part of homepage again. I think it's HS failing to resolve the new url. Any suggestion? I'm open to solutions that doesn't include modifying .htaccess too.  Thanks in advance,")* was created by *[danielle\_walton](/forum/user/8055-danielle-walton "View danielle&#95;walton's Profile")*

Hi, I'm using some javascript to display my joomla pages and it requires all my links to finish with this string

/#!/[somestring]

The menu items are not a problem, they're just external urls written by myself but for inner links, for example, products links from hikashop, I modified .htaccess this way:

RewriteRule .* index.php [C] #(last rule in normal joomla .htaccess, changed from LAST to CHAINED)
RewriteRule ^(.*)$ $1/#!/component [R=301,NE,L]

Inner link has its normal text, example:

http://[my_webserver]/index.php/hikashop/product/1-bread/

But, once the link is clicked, browser lands in a page the form I want:

http://[my_webserver]/index.php/hikashop/product/1-bread/#!/component

The problem is, it doesn't load the desired content but it loads part of homepage again. I think it's HS failing to resolve the new url. Any suggestion? I'm open to solutions that doesn't include modifying .htaccess too.

Thanks in advance,

Last edit: 14 years 2 months ago by [danielle\_walton](/forum/user/8055-danielle-walton "View danielle&#95;walton's Profile").

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

14 years 2 months ago [\#64222](#64222) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add string at the end of HS links...](/forum/4-how-to/64085-add-string-at-the-end-of-hs-links#64222 "Hi, I'm using some javascript to display my joomla pages and it requires all my links to finish with this string  /#!/&#91;somestring&#93;  The menu items are not a problem, they're just external urls written by myself but for inner links, for example, products links from hikashop, I modified .htaccess this way:  RewriteRule .&#42; index.php &#91;C&#93; #(last rule in normal joomla .htaccess, changed from LAST to CHAINED) RewriteRule ^(.&#42;)$ $1/#!/component &#91;R=301,NE,L&#93;  Inner link has its normal text, example:  http://&#91;my&#95;webserver&#93;/index.php/hikashop/product/1-bread/  But, once the link is clicked, browser lands in a page the form I want:  http://&#91;my&#95;webserver&#93;/index.php/hikashop/product/1-bread/#!/component  The problem is, it doesn't load the desired content but it loads part of homepage again. I think it's HS failing to resolve the new url. Any suggestion? I'm open to solutions that doesn't include modifying .htaccess too.  Thanks in advance,")*

It must come from something in the router file of HikaShop which doesn't like your URL modification.
You should check the function HikashopParseRoute of the file components/com_hikashop/router.php

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

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