WebSite X5Help Center

 
Sascha J.
Sascha J.
User

HTML Code Object  en

Autor: Sascha J.
Visited 1584, Followers 1, Udostępniony 0  

Hello everyone,

I'm trying to create a text, which links to my Shopping Cart,

but when I'm in my Shopping Cart (linked through my text "cart/index.php#step1") and

if I click again on my linked text (while I'm in my Shopping Cart), it tries to refresh the page and links me to this page which does not exist: "/cart/cart/index.php#step1"

I tried to prevent the link to refresh the page by adding this to the Code:

return false; preventDefault()

but it doesn't work.

  • How can I prevent the link from refreshing the page OR refresh the page without leading to the wrong page?

Thanks for your time.

Posted on the
2 ODPOWIEDZI - 1 POMOCNY - 1 PRAWIDłOWA ODPOWIEDź
JJ. JUAG
JJ. JUAG
User

make the link not cart/index.php#step1  

make /cart/index.php#step1  

the link got to /cart/cart, the first "/" define the root of homepage

JJ.

Czytaj więcej
Posted on the from JJ. JUAG
Sascha J.
Sascha J.
User
Autor

Hello JJ Juag,

thanks alot, I was trying to find a solution for hours!!

You saved me, thanks!

Czytaj więcej
Posted on the from Sascha J.