Use a helper to avoid using media/
asset prefixes (#28756)
This commit is contained in:
parent
baab58c80b
commit
cb5ac15923
31 changed files with 40 additions and 36 deletions
|
@ -28,7 +28,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|||
}
|
||||
else
|
||||
{
|
||||
url: full_pack_url('media/images/preview.png'),
|
||||
url: frontend_asset_url('images/preview.png'),
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue