Skip to content

Use of Laravel asset function in script.blade.php cause getFileUrl to return bad path #114

@cbernard73

Description

@cbernard73

On Jun 28 a change was made to line 5 of script.blade.php so that it now reads:

var image_url = "{{ asset(Config::get('lfm.images_url')) }}";

The asset function was added. The use of the asset function causes the trailing / of images_url to be removed.

Then getFileUrl remove the leading / here:

if (path.indexOf(ds) === 0) {
path = path.substring(1);
}

The result is a path like http:://localhost/images1/23423423.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    doneIssue is fixed. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions