- "og:image" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "http"),
- "og:image:secure_url" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "https"),
- "og:url" => url_for(:host => SERVER_URL),
+ "og:image" => og_image ? URI.join(root_url, og_image) : image_url("osm_logo_256.png"),
+ "og:url" => url_for(:only_path => false),