Closed (fixed)
Project:
Metatag
Version:
7.x-1.x-dev
Component:
Open Graph
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Jul 2015 at 17:13 UTC
Updated:
7 Jun 2016 at 10:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damienmckennaI'm inclined to mark this as "won't fix" because you should be using Transliteration to simplify filenames anyway.
Comment #2
Jurgen8en commentedThanks for your answer, that is the right way to do.
At the moment, I solved it like this:
Comment #3
damienmckennaDoes it also work if you use the + symbol instead of %20?
Comment #4
akoepke commentedI have just encountered this same issue. For us using transliteration isn't an option as our images are stored in Amazon S3. The process to rename all existing 66,000 images which have spaces would take a very long time.
The site I manage is SSL only and we use the CDN module to rewrite image URLs. At the moment the URL going into the og:image tag is https:// which is causing issues with LinkedIn and Facebook. I have used the token for just the filename and manually added the correct domain to it but this causes issues when there are spaces in the file name.
Comment #5
damienmckennaHow about we set it up that all image URLs automatically have spaces replaced appropriately?
Comment #6
damienmckennaThis might help, but we're at the point that we need some tests.
Comment #7
damienmckennaComment #8
damienmckennaSo I ended up just going with replacing spaces with the '%20' string, and then I added some extra assertions to make sure the URLs could be loaded.
Comment #11
damienmckennaWeird, those two tests work locally. Trying again.
Comment #14
damienmckennaLets see what error is actually being thrown on lines 99 and 138.
Comment #17
damienmckennaLets see what the actual URL is.
Comment #20
damienmckennaLets try to get more detail.
Comment #23
damienmckennaTrying again.
Comment #24
damienmckennaComment #27
damienmckennaGrumble.
Comment #30
damienmckennaLets see if I can fix the handling of relative image paths too.
Comment #31
damienmckennaAnother possible improvement to the relative path handling.
Comment #34
damienmckennaDie, bugs, die.
Comment #37
damienmckennaOne more time, with feeling.
Comment #40
damienmckennaComment #43
damienmckennaComment #46
damienmckennaComment #48
damienmckennaComment #50
damienmckennaComment #52
damienmckennaComment #53
damienmckennaComment #55
damienmckennaComment #57
damienmckennaComment #59
damienmckennaComment #61
damienmckennaCommitted. And I've added a change notice for this: https://www.drupal.org/node/2731999