• Home
  • Get help
  • Ask a question
Last post 11 hours 23 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67708
All time tickets 10463
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#6926 – Open Graph on Canonical Sites

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 10 February 2020 14:43 UTC
EURESA
 Hello
i have an Site with an Form on it, to generate searchings and other output.
If i filter some criteria the URL generates new attributes So on so good. I left an Open Graph for the Site and it generated the Open Graph correctly, but if i filter with the form there is a new Url like ".../test?pax=2?bed=3" . So the orignal Site "/test" has an Open Graph, but the canonicals "test?pax=2?bed=3" didn´t get an Open Graph Image.

Is there an Way to tell that it have to take the OpenGraph from it´s parent?

Greetings
Johannes
Monday, 10 February 2020 14:49 UTC
wb_weeblr
Hi

The open graph URL we use is the URL of the page. The only way to change that is if the page has a canonical link so I would suggest you add a canonical link to the source page. But you need to do it from the Aliases page, similar to this:



Best regards


 
Monday, 10 February 2020 15:24 UTC
EURESA
Hello
The Canocial URL ist the right one, but the image is the wrong one.
How can we fix that?

Greetings
Monday, 10 February 2020 16:00 UTC
wb_weeblr
Hi

How can we fix that?
The image is selected based on:

- The image entered for a URL in the SEF URL manager



- If no image is "forced" then sh404SEF tries to automatically find one in the content of the page. This is probably what's happening here.

Those are the only 2 officialy ways of selecting an OG image. If you can do a little bit of PHP programming, you can use one of the sh404SEF filters to force the image for specific URLs and this will let you change the URL exactly as you like. We can provide a sample of code for that (but not write the actual exact code). It's really simple but does involve writing a few lines of PHP.

Best regards
 
Tuesday, 11 February 2020 07:53 UTC
EURESA
Hello,

I tried the 2 things and there is no matching og for the sites with those parameters.

Picture og_fehler1 & 2 showing the path and image in sh4040
og_fehler3 is showing the original og on the original Site
og_fehler4 is showing the og image on the site with parameters like "/pur-plus?pax=2?.."

The meta Descriptions and og:url is the original one. If you want i can give you access to the backend. It´s maybe a bug?
Thanks for the fast answers and helpfull tipps.

Greetings
Tuesday, 11 February 2020 10:36 UTC
wb_weeblr
Hi

I tried the 2 things a
Not exactly: you set an image for the URL /angebote/plus-pur-precise and I'm sure that works. However, this is not the URL where you have a problem.
The URL you need to set an image for is: /angebote/plus-pur-precise?pax=2&bed=3 and any other URL that can result from your search form. Which is why I said this is not practical.

og_fehler3 is showing the original og on the original Site

og_fehler4 is showing the og image on the site with parameters like "/pur-plus?pax=2?.."
Exactly as they are supposed to be:

On /plus-pur-preise?pax=2:

1 - The URL is /plus-pur-preise instead of /plus-pur-preise?pax=2 which shows that your rule for canonical is working
2 - The image us /.../teaser.jpg which confirms what I said above, that you need to set an image for the current URL, in that case, /plus-pur-preise?pax=2

Again, there's no solution from the user interface - except if you enter a custom image for each an every possible /plus-pur-preise?pax=xxxx parameters combination . This can only done with some PHP code.

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Wednesday, 26 February 2020 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.