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
(cherry picked from commit 839ee5e
)
This commit is contained in:
parent
980d900b88
commit
1f28ed8a0a
|
@ -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 New Issue