All things Shopify and commerce
After doing a broken link scan there were numerous 404 pages. After fixing most of them I have a few left over that I need help with.
Any help would be appreciated on these two issues. Thanks.
1. For this I would need a know a bit more to see what is going on with the code. The URL to this would be helpful.
2.
The link you gave is not working due to the filter tagged onto the end as it is an incorrect format.
So for example (this works): https://avidhealthandwellness.com/collections/vendors?q=Finnmark+Designs
In your original URL you gave has two query parameters (the question mark) and this is an incorrect format.
The filter is: ?sort_by=title-ascending it should be using '&'
This is the actual URL for that filter : https://avidhealthandwellness.com/collections/vendors?filter.v.price.gte=&filter.v.price.lte=&q=Finn...
I actually ended up having to click a few other filters just to get the "title-ascending" to work as it seems it is the default when the page is loaded. I also noticed that even though the page defaults to A-Z you still have 'sort by' but is part of the selection list. Is this part of your Avone theme or a plugin?
Thanks for your quick response. Here is the link for my first issue. Full Protective Sheath for Harvia M Series Sauna Wood Stoves - WL450– Avid Health and Wellness The 404 error was from a link within this product page. At the bottom of the product information you will see a link named "installation Manual". I had originally had a second link below this named "safety" which linked to a PDF file via Shopify files. I deleted this on my product page but it still shows in the back end code which is causing the 404. I've also attached a screenshot of my scan in this message from brokenlinkcheck.com.
As for number 2, I copied direct from the scan shown in the photo. Here is a link from number 2 in the screen shot. Hope this helps. Finnmark Designs– Avid Health and Wellness
As you can see if shows the products in that category but it is still coming back in the scan as a 404. There are numerous ones as you can see in the image marked under the Link Text column marked as "clear all".
For #1 you need to remove the code from your liquid file as I can absolutely see it from the front end code:
<h3><a rel="noopener" href="Harvia-WL450-Safety" target="_blank"><strong></strong></a></h3>
The only thing removed was the actual words to show up. How was this originally entered?
#2 This one is going to be a bit time consuming but creating redirects for these URLS might be the way to go. Something is absolutely wrong with the filters and the dynamically created URLs from the filters. Essentially there is a working version of those URLs and when navigating your site no one would ever have a clue because all of your links are actually correct but there are several links cached that are not correct. This can also happen when you change the slug of your product. Now they luckily have the little checkbox that automatically redirects the old page. The issue you are facing is similar but a bit different in that we have no idea why these URLs are being created or else we would fix the root issue.
You can send me over the urls in text format. You can send me over these 12 here that you are showing me. This way I don't have to hand type everything out lol. I can show you step by step what I am doing to create the redirect and how to add it to Shopify.
#1. Just to be clear that snippet of code that you included in your message is all that I need to remove? I’m always leery about touching anything related to code, but I will make a copy of the theme to see how it goes. All I did was copy the PDF file from Shopify>content>files and hyperlinked the “Safety” text like the installation manual link. When I deleted it the code remained for some reason.
#2. I went into the theme and disabled the filter option, which seems to solve the other 404s. Not the best option, but it will work for now. Attempting to retrieve my GMC account from suspension so I need to get the site in good working order. I rescanned and all of those in my former screenshot cleared, but as I’m using the free version of the website more urls came back with the same filtering issue so I will just work through that for now and reach back out if I continue to have issues.
#1 Yup you have the manually remove the code unless you are able to find the url within the editor. For example going to customize and finding that particular page, click the section where the link was showing up and then see in the menu to the left if there is anywhere with the old link. If so then you can remove it from there. If you are unable to essentially reverse the steps you did before you may end up having to manually remove it. If you need me to check, you can always invite me to look.
#2 Sometimes the 'broken urls' are indeed just cached information that takes time to fall off. Next time you do a scan make sure you clear your browser cache so you get an accurate reading. I imagine you are probably limited to 1500 - 2000 scans on the free version. I may be able to write a script to do a full scan and send it over to you.
edit: Wait, you can probably get a full list of 404's from Google Search Console for free.
Sent you a direct message
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024