Skip to content
This repository was archived by the owner on Feb 13, 2020. It is now read-only.

Using empty folder can lead to broken URLs. #13

Open
bobvanderclay wants to merge 1 commit into
OpenBuildings:masterfrom
bobvanderclay:master
Open

Using empty folder can lead to broken URLs. #13
bobvanderclay wants to merge 1 commit into
OpenBuildings:masterfrom
bobvanderclay:master

Conversation

@bobvanderclay
Copy link
Copy Markdown

If an empty asset-merger.folder is specified (we put the rendered script and style directories into the root directory), Kohana_Assets::web_path returns a path with a leading slash.

This path is passed to Html::script and Html::style, which combines it with the path in Url::base (which returns a trailing slash), which results in doubles slashes in the URL. In some cases this has caused an issue.

I've used ltrim to remote the leading slash.

@samwilson
Copy link
Copy Markdown

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants