Make theming work with pretty URLs
In some envs the rewrite rules for pretty URLs apply to all CSS files, so let's not end the route name with that etension. Fixes #315
This commit is contained in:
parent
d15fd5cb96
commit
839ee5eac1
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ namespace OCA\Theming\AppInfo;
|
|||
],
|
||||
[
|
||||
'name' => 'Theming#getStylesheet',
|
||||
'url' => '/styles.css',
|
||||
'url' => '/styles',
|
||||
'verb' => 'GET',
|
||||
],
|
||||
[
|
||||
|
|
|
@ -234,7 +234,7 @@ class ThemingController extends Controller {
|
|||
|
||||
\OC_Response::setExpiresHeader(gmdate('D, d M Y H:i:s', time() + (60*60*24*45)) . ' GMT');
|
||||
\OC_Response::enableCaching();
|
||||
$response = new Http\DataDownloadResponse($responseCss, 'style.css', 'text/css');
|
||||
$response = new Http\DataDownloadResponse($responseCss, 'style', 'text/css');
|
||||
$response->cacheFor(3600);
|
||||
return $response;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue