···2525 }
26262727 // Fall back to checking raw record for legacy base_path
2828- if (isLeafletPublication(pub.record) && pub.record.base_path && isProductionDomain()) {
2828+ if (
2929+ isLeafletPublication(pub.record) &&
3030+ pub.record.base_path &&
3131+ isProductionDomain()
3232+ ) {
2933 return `https://${pub.record.base_path}`;
3034 }
3135···3640 const normalized = normalizePublicationRecord(pub.record);
3741 const aturi = new AtUri(pub.uri);
38423939- // Use normalized name if available, fall back to rkey
4040- const name = normalized?.name || aturi.rkey;
4343+ //use rkey, fallback to name
4444+ const name = aturi.rkey || normalized?.name;
4145 return `/lish/${aturi.host}/${encodeURIComponent(name || "")}`;
4246}