DEV Community

Cody Wang
Cody Wang

Posted on

One product, three counts, and twenty URLs I deleted

The template store sells one thing: a pack of homepage compositions. On one page it described that pack three different ways. The gallery subtitle said "18 English homepage compositions". The pricing line said "Order the 18-template pack". The checkout behind it sells six. Each sentence was written on a separate afternoon, each was true when written, and together they were a lie.

Which number was wrong

The gallery renders 17 compositions, counted from the array after I retired one. The pack ships six licensed files. The overlap is real; the sentence was not. What made it wrong was that I had typed all three counts by hand in three files, and a fourth place — the Gumroad listing — had a count I could not edit in the same commit.

So the counts are now derived or absent. The gallery prints its own length. The pricing line says six files, $79, and links to Gumroad instead of /contact. That cost something: "email us to order" needed no merchant account, but every order was a manual thread with no event to attribute a sale to. The order page is noIndex now, because a page that does nothing but forward you to a checkout should not compete with the product pages in a crawl.

The URL archaeology

Ten short ids were once live at the root: /cafe, /pet, /dental, /barber, /jewelry, /architects, /stay, /house, /salon, /architecture. They were renamed to two-word slugs (/templates/ember-and-oat, /templates/marlow-house). Both sets stayed online, plus root-level duplicates of the new set. One page each, twenty URLs.

On a site with almost no external links, duplicate 200s split the few that exist. I could have deleted the old routes — cheaper, cleaner, one line each. I mapped them instead: a ten-key object in next.config.js, two redirects per key, both 308. Deleting would have thrown away whatever still points at them, and I have no way to enumerate that.

The detail that explained the mess: git blame showed the aliases living in the page config as an id field, with routes derived from it. A rename there silently produced a second URL rather than moving one. The config was the source of truth and nothing checked that it was unique.

Pagination for 17 items

The gallery had twelve per page: page state, prev/next labels in two languages, a counter, an effect resetting to page one on every filter change. Under most filters that produced a dead second page.

I deleted it. 71 lines gone, one long scroll instead of two clicks, data-card-count left in place so the assertion I care about — how many cards rendered — still works. Page state was also why filtered results appeared late: the first render was a slice of a slice.

The schema I removed

Each product page emitted Product JSON-LD with a name, description and image. No offers, no price, no ratings, because there is no per-template price. Declaring a Product without an offer declares a listing that will never match merchant data, and I had been telling myself the markup was "structured data for the template".

It is gone. BreadcrumbList stayed, and the two questions already in the body text became FAQPage. I lost any chance at a product rich result and gained markup that describes what the page is.

What four visitors said

My hit log has 40 non-bot rows since October. Four of them are from the last week. Thirty-six arrived with no referrer, most landed on / and never reached a product page, and two came from prismicaudit.com, where I linked the store from a tool page.

Four visitors is not a volume problem that more pages fix. It means when a link does get followed, the Slice Lab store has to be internally consistent at that exact moment: one count, one checkout, one URL per product. An eighteenth composition would have added a page and another number.

None of this is measurable yet. The three things I can report: twenty URLs collapsed, seventy-one lines deleted, one checkout with a real URL. If the next four visitors land on / and leave again, consolidation was not the constraint, and I learned that for the price of a redirect map.

Top comments (1)

Collapse
 
dosaygo profile image
dosaygo •

If someone ordered while the listing said 18, did you keep the earlier pricing and checkout copy so you can reconcile what they were promised?