Metadecidim
Sign in

Process

Report a Bug

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

  1. 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
  2. Against

    You need to configure your assets hosts at your application, Decidim can't do this.

    0 votes up 0 votes down
  3. CarrierWave.configure do |config|
    config.asset_host = proc do |file|
    identifier = "my_host"
    end
    end

    0 votes up 0 votes down
  4. I meant:

    CarrierWave.configure do |config|
    config.asset_host = MY_HOST
    end

    3 votes up 0 votes down
    1. Ahá! Thank u so much! We are going to check it and then i'll withdraw :)

      0 votes up 0 votes down
      1. @xfolch please follow this !

        0 votes up 0 votes down
    2. thanks!

      0 votes up 0 votes down
    3. It works! Thanks @

      1 votes up 0 votes down
    4. (:+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.