Skip to content

Open source alternative to Semrush and Ahrefs

Backlinks tab: default sort by most recent (firstSeen) instead of rank (#432)

Ben Senescub0e850db2bad
diff --git a/src/types/schemas/backlinks.ts b/src/types/schemas/backlinks.ts
index 98e4e295..e65cfc77 100644
--- a/src/types/schemas/backlinks.ts
+++ b/src/types/schemas/backlinks.ts
@@ -136,7 +136,7 @@ export const topPagesSortFieldSchema = z.enum([
/** Single source for each tab's default sort, shared by the request-schema
* defaults and the client's header indicators / query fallbacks. */
export const BACKLINKS_DEFAULT_SORT = {
- backlinks: { field: "rank", order: "desc" },
+ backlinks: { field: "firstSeen", order: "desc" },
domains: { field: "backlinks", order: "desc" },
pages: { field: "backlinks", order: "desc" },
} as const satisfies Record<