How to prevent subcollection pages from redirecting?

Solved

How to prevent subcollection pages from redirecting?

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?

Accepted Solution (1)

Jivan_Suhagiya
Shopify Partner
595 82 126

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

View solution in original post

Replies 12 (12)

Jivan_Suhagiya
Shopify Partner
595 82 126

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
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?

Jivan_Suhagiya
Shopify Partner
595 82 126

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
kejiazhang123
Visitor
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.

lu2021lu
Tourist
5 0 1

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

Hiromi0806
Tourist
10 1 0

 Hi, I have now this problem... how can I fix it?
Can you tell me exact way to do? I'm a expert... nor developer...

My story is I removed an APP AI Search & Product Filter |SB and installed Rapid Search as a new APP.
onece my collection page open, at first site looks work but a few seconds Refresh automatically URL +  "?view=no-usf" ...

Thank you for your support.
Best Regards,

Hiromi

pehnawa_label
Visitor
1 0 0

Its also happening with me suddenly. I have remove the fuction call but the style is not loading. I am using dawn theme

 

Screenshot 2023-12-06 at 12.17.56 AM.png

Hiromi0806
Tourist
10 1 0

Hi, Have you use the APP, AI Search & Product Filter |SB? if yes,  you can ask them to fix it. This is the fastest way to solve the problem.

I think the Theme is not related this case.

Best Regards,

Hiromi

youcantgoogleme
Shopify Partner
5 0 3

Hey, i got the same problem. 
Is it maybe caused by an app? 
Did you have this app installed? 
Did you find a solution? 

Ah they took out the url of the app. 
Its the Ulimate search and Filter ... 

Quality e-commerce solutions since 2010.
Jivan_Suhagiya
Shopify Partner
595 82 126

Hi @youcantgoogleme 
can you please share site url and issue details? in which page exactly happens?

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
youcantgoogleme
Shopify Partner
5 0 3

Thank you i found the problem. 
It's because of a missing USF App integration.
The files of the app are in the theme but the App is not installed.

Quality e-commerce solutions since 2010.
Detoza
Visitor
2 0 0

Here is the solution guys, it took time but i finally have it fixed. The usf files are in your theme because you have installed "AI SEARCH & PRODUCT FILTER l SB". Now when you deleting that app the files are still in your theme but the app isnt. thats why it reloads automaticly after 8 secs. What you need to do is reinstall the app and follow those steps from the maker of the app in the link below:
https://docs.sobooster.com/guide/theme-setup/remove-app-code-automatically

After you will get linked to remove page in the link below:
https://docs.sobooster.com/guide/theme-setup/revert-theme-automaticallyhttps://docs.sobooster.com/gu...

Follow those steps and your shop is fixed.