ZenphotoCMS Forum
Plugin html_meta_tags canonical URL - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Plugin html_meta_tags canonical URL (/thread-12290.html)



Plugin html_meta_tags canonical URL - wibbi - 19-03-2018

The link rel canonical in the html_meta_tags plugin don't work right. In a image page over a search result page is not the album/image URL put in the link rel canonical, but the current URL.




Plugin html_meta_tags canonical URL - acrylian - 19-03-2018

Sorry, I don't understand. What url is where wrong? The canonical url is meant to be the current url where the image is located. In search resultes and within a dynamic album (= "saved search") it willl point to that original location, too.




Plugin html_meta_tags canonical URL - wibbi - 19-03-2018

It does not seem to do it. In my test the URL of the image was displayed in the dynamic album as canonical URL, not the URL to the original image page.

The static album:
https://www.example.com/album/subalbum/PICT0001.JPG

The dynamic album:
https://www.example.com/fotomap/PICT0001.JPG

The canonical link rel in the linked image page from a dynamic album:
``

Sorry. Test with the Links in the thumbs in the popups in the OSM map in a dynamic album. Puuuuh..., very complicated.




Plugin html_meta_tags canonical URL - acrylian - 20-03-2018

Okay, thanks. I will try to reproduce that. The canonical image page should be the one of the original album and if it doesn't it may be a bug.

Also please always try the support build as a change might be there already. I primarily test with that since it is the next version.




Plugin html_meta_tags canonical URL - vincent3569 - 20-03-2018

hi

as far I can test for the same picture (in an original album and in a dynamic album):

in image page from a search: cannoncial url is good (link to the picture from its original album)
``

in image page from a dynamic album: cannoncial url isn't good (link to the picture from the dynamic album)
``




Plugin html_meta_tags canonical URL - acrylian - 20-03-2018

Okay, that would be indeed a bug then. I assume you did test the support build?




Plugin html_meta_tags canonical URL - vincent3569 - 20-03-2018

yes of course