Fix ogimages
This commit is contained in:
parent
da1bf49524
commit
160283f1a1
2 changed files with 35 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue