Developer forum

Forum » Swift » Relative url appended at the end of current url path when removing from cart in Mini Cart app

Relative url appended at the end of current url path when removing from cart in Mini Cart app

Arnór Halldórsson
Arnór Halldórsson
Reply

Yo,

Swift version: 1.26.5

When removing from cart in the minicart:

The url sent looks like:

We hotfixed it by just adding "/" to the Form Actions in Templates/Designs/Swift/Swift_CartSummary.cshtml that handle removing the orderlines:

and

Not sure if it's the optimal long term solution, maybe you guys have a better permanent one you want to put into the template :)

Best regards,
Arnór


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi arnor

Thanks - have made a pull request to change that.

Usually the Swift solution is using the base href setting that will handle this.

BR Nicolai

Votes for this answer: 1
 
Arnór Halldórsson
Arnór Halldórsson
Reply

Arigato senpai! :)

You know us, we tend to deviate from the beaten path to create new headaches for you :D

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

And you can handle it :-).

 

You must be logged in to post in the forum