Skip to content

fix: change the order of image source checking in HasMetadata#32

Open
dancing-janissary wants to merge 1 commit intocwsdigital:v1.xfrom
dancing-janissary:hazarcan-fix-og-image-control-order
Open

fix: change the order of image source checking in HasMetadata#32
dancing-janissary wants to merge 1 commit intocwsdigital:v1.xfrom
dancing-janissary:hazarcan-fix-og-image-control-order

Conversation

@dancing-janissary
Copy link
Copy Markdown

Functinally, If I had set a global OG Image from settings, All pages should display it for the SEO pruposes. However previous code was cousing trouble because of the HasMetadata:61 ( "elseif ($this->hasAnyBlockMedias())") control. In our system, it was taking an unreleated image in a block as og image instead of the global one in settings. This order change would fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant