Withdrawn not yet on protocol
Relative route on images must be absolute route
Now it's implemented to display the banner image when is shearing a proposal (example) on twitter or OpenGraph (FB). Problem comes that is a relative route and not absolute. This problem is not happening on MetaDecidim because it's using AWS.
Documents
9 comments
-
This issue comes from @fcasadella feature proposal (
Compartir un procés a les xarxes socials
) appears when sharing a link in Twitter or Facebook.
1 votes up 0 votes down -
Against
You need to configure your assets hosts at your application, Decidim can't do this.
0 votes up 0 votes down -
CarrierWave.configure do |config|
config.asset_host = proc do |file|
identifier = "my_host"
end
end0 votes up 0 votes down -
I meant:
CarrierWave.configure do |config|
config.asset_host = MY_HOST
end3 votes up 0 votes down-
Ahá! Thank u so much! We are going to check it and then i'll withdraw :)
0 votes up 0 votes down-
@xfolch please follow this !
0 votes up 0 votes down
-
-
thanks!
0 votes up 0 votes down -
It works! Thanks @
1 votes up 0 votes down -
(:+1: ) Thanks @ , setting the asset_host config option in CarrierWave's initializer solves the issue if there's only a tenant.
( :sweat:) But it raises a question:
how should it be configured in a multitenant environment that has multiple domains?
as MY_HOST should be relative to the current_organization
Do you have some tip?
thanks in advance
0 votes up 0 votes down
-
Sign in with your Atmosphere account to comment.