- 
                Notifications
    
You must be signed in to change notification settings  - Fork 43
 
[7.x] Search Engine & Social Card Previews #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
                
     Merged
            
            
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    | 
           And this error too https://flareapp.io/share/w5BrwnL5  | 
    
          
 Odd. Wanna 🍐 on it when you get in? 
 Just pushed up a fix for this.  | 
    
              
                    jackmcdade
  
              
              approved these changes
              
                  
                    Oct 29, 2025 
                  
              
              
            
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This pull request adds Google, Twitter and Facebook previews to the SEO tab on entries & terms, making it easier to visualize your changes in search & social media.
The previews will update in real-time as you make changes to fields.
The only caveat to this is inherited fields using the "From Field" option - those values will be updated when you save, due to a limitation with how inherited fields work currently. We can fix it later if it becomes an issue.
To avoid constant network requests, I've tried to keep most of the logic in JavaScript. Only fields used in the collection's route will trigger network requests to fetch the updated entry URL.
Screenshot
Note
Adds live search and social card previews to entries/terms, with a preview endpoint and blueprint tab adjustments.
resources/js/components/fieldtypes/PreviewsFieldtype.vueto render Google, X (Twitter), and Facebook previews with live updates, including favicon and image handling.seo_pro_previews-fieldtypeinresources/js/cp.js.Statamic\SeoPro\Fieldtypes\SeoProPreviewspreloadinginitialUrl,routeFields,assetContainerUrl, andfaviconUrl.POST seo-pro/previewhandled byStatamic\SeoPro\Http\Controllers\CP\PreviewControllerto return updatedabsoluteUrlbased on route-affecting fields.seofield intoSEO Metatab (wasSEO).seo_previewsfield inSEO Previewstab (prepended), and adjust removal logic accordingly.collectionsandtaxonomiesbytitleinSectionDefaultsController.striptagsfor content sanitization; bumpviteto^6.4.1.Written by Cursor Bugbot for commit 09414c6. This will update automatically on new commits. Configure here.