Fix ogimages

This commit is contained in:
Andras Schmelczer 2026-03-24 22:53:34 +00:00
parent da1bf49524
commit 160283f1a1
2 changed files with 35 additions and 4 deletions

View file

@ -22,7 +22,7 @@ pub async fn og_middleware(request: Request, next: Next) -> Response {
let response = next.run(request).await;
// Only inject OG tags into SPA HTML responses, not proxied PocketBase responses
if path.starts_with("/pb/") || path.starts_with("/api/") {
if path.starts_with("/pb/") || path.starts_with("/api/") || path.starts_with("/s/") {
return response;
}