How to prevent subcollection pages from redirecting?

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?

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

1 Like

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?

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

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.

that solution does not work, the “redirectooriginaview” cannot be deleted

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 …

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

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.

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

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

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

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/guide/theme-setup/revert-theme-automatically

Follow those steps and your shop is fixed.