Skip to content

image_path function does not add prefix when deployed on a sub uri #17

@bpaquet

Description

@bpaquet

image_path('toto.png') in a scss is not prefixed by sub uri when app is deployed on a sub uri context : RAILS_RELATIVE_URL_ROOT is not used.

I have a patch to correct this problem here :
https://github.com/bpaquet/sass-rails/commit/f83a59fe2052dc7ba8c2d0bc9c8a653fad47fb08
I'm not sure it's the better way to solve this problem.

Remark : I have to set RAILS_RELATIVE_URL_ROOT when I run rake assets:precompile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions