Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Cachet setup not to be at server's root #3645

Merged
merged 1 commit into from
Jun 23, 2019

Conversation

nalysius
Copy link
Contributor

@nalysius nalysius commented Jun 8, 2019

Cachet may be installed at the root of its vhost or in a subdirectory,
for example in "/" or under "/status".

The URI we found pointing to some assets were usually not prefixed with
the path, so if Cachet was installed under "/status" the asset
URI pointed to the server root like "/my-asset.js".
It is a problem because that means the behaviour is broken in this case.
The problem was present from the setup, it was not possible to fill the
setup since the path to the scripts and CSS weres wrong.

The "asset" helper is now used and resolves the URI.

See: #3618

Cachet may be installed at the root of its vhost or in a subdirectory,
for example in "/" or under "/status".

The URI we found pointing to some assets were usually not prefixed with
the path, so if Cachet was installed under "/status" the asset
URI pointed to the server root like "/my-asset.js".
It is a problem because that means the behaviour is broken in this case.
The problem was present from the setup, it was not possible to fill the
setup since the path to the scripts and CSS weres wrong.

The "asset" helper is now used and resolves the URI.

See: cachethq#3618
@nalysius nalysius force-pushed the feature/3618-setup-assets-path branch from 513489d to fbf141c Compare June 19, 2019 09:20
@jbrooksuk jbrooksuk merged commit 59ef902 into cachethq:2.3 Jun 23, 2019
@jbrooksuk
Copy link
Member

Thanks for backporting this to 2.3 too.

@jbrooksuk jbrooksuk added this to the V2.3.14 milestone Jun 23, 2019
@nalysius nalysius deleted the feature/3618-setup-assets-path branch June 23, 2019 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants