v2.3.5 — Custom URL link layout fixes & object-fit on uncropped images
A small patch on top of v2.3.4. Four user-visible fixes around the new custom-URL link items, the rounded-vs-square logo / About-me photo, and the footer link target.
🐛 Fixes
Custom URL link without a title rendered broken
When you added a custom-URL link and left the Custom title field empty, the card on the public page fell apart — empty title slot, an underlined URL bleeding into the card body, the chevron arrow on its own line. Cause: the title fallback was the raw URL, and Parsedown auto-linked https://... into a nested <a> inside the outer link card, which browsers handle poorly.
Both resolve paths (URL source and YOURLS shortlink source) now derive a clean hostname (without www.) as the fallback title, so Parsedown sees google.com instead of https://www.google.com and leaves it as plain text. The card layout stays intact.
Custom-title hint copy is now source-specific
Instead of the generic (optional — falls back to YOURLS link title or the URL) line, each link item shows the right hint for its source:
- Custom URL items: (optional — falls back to the destination domain)
- YOURLS shortlink items: (optional — falls back to the YOURLS link title)
JS swaps the hint in renderItem() based on item.source.
Logo / About-me photo cropped even with circular mask off
object-fit: cover was hard-coded on both images, so a portrait photo got its top and bottom shaved off even when the circular mask was disabled. Two new CSS variables — --lfp-logo-fit and --lfp-photo-fit — resolve to:
coverwhen the Round toggle is on (centered crop into the circle, the obvious behaviour)containwhen it's off (full image visible inside the rounded square, no cropping)
Footer "Powered by" anchor ignored the new-tab toggle
The Login link, link cards, and image-grid tiles all respect General → Open all links from the homepage in a new tab. The Powered-by anchor next to it didn't. It does now — picks up the same $link_target_attr / $link_rel_attr the other links use.
⬇️ Installation
cd /path/to/yourls/user/plugins
rm -rf yourls-link-front-page
unzip /path/to/YOURLS-Link-Front-Page-2.3.5.zip…or git pull. No database changes.
Full changelog: v2.3.4…v2.3.5