Unwanted Subcollection Page Redirect

Solved
SaltyDogMarine
New Member
4 0 0

Hi there,

I'm having an issue where my collection pages that are a subcollection layout will redirect to a basic collection layout and add "?view=no-usf" to the end of the URL after about 5 seconds. To see what I mean you can go here: https://saltydogmarinesupplies.com/collections/shop Does anyone know how to make it so these collections don't redirect?

0 Likes
Jivan_Suhagiya
Shopify Partner
498 68 107

This is an accepted solution.

Hi @SaltyDogMarine 
In usf.js there is function which is doing this. not sure why you(developer) used this one. but you can remove calling of this function from that js file and it will be fixed 

Jivan_Suhagiya_0-1618920776144.png

 

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
0 Likes
SaltyDogMarine
New Member
4 0 0

Thank you, I'm not a developer it may have been in the theme I'm using for some reason. Is it as easy as just deleting that part of the js code or will that "break" the site?

0 Likes
Jivan_Suhagiya
Shopify Partner
498 68 107

you can't delete it directly, it may break site. you need to remove that functions calling too

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
0 Likes
kejiazhang123
New Member
1 0 0

Hi, thank you for the solution! But how do I find this coding page? I went to the theme and edit the code, and tried every collection coding page.

0 Likes
lu2021lu
Tourist
5 0 0

that solution does not work, the "redirectooriginaview" cannot be deleted

0 Likes