From f258289be95f8be2d7740fc86e1ae25c737a0111 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 2 Nov 2023 17:16:31 -0500 Subject: [PATCH] Treat PHP pages as HTML (#1797) --- src/lib/link-meta/link-meta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/link-meta/link-meta.ts b/src/lib/link-meta/link-meta.ts index 7e3fab340f..c490fa2923 100644 --- a/src/lib/link-meta/link-meta.ts +++ b/src/lib/link-meta/link-meta.ts @@ -92,7 +92,7 @@ export function getLikelyType(url: URL | string): LikelyType { } const ext = url.pathname.split('.').pop() || '' - if (ext === 'html' || ext === 'htm') { + if (ext === 'html' || ext === 'htm' || ext === 'php') { return LikelyType.HTML } const mimeType = EXT_MIME_TYPES[ext]