Add index.php to body-login background image url as Nextcloud now properly handles the redirect when pretty urls are used

This commit is contained in:
Magnus Walbeck 2021-11-28 14:20:17 +01:00
parent c53e5e804e
commit 095f650bff
No known key found for this signature in database
GPG Key ID: CCB78CFF3F950769
3 changed files with 2 additions and 22 deletions

View File

@ -61,26 +61,6 @@ Please note that you need the Accessibility app enabled in Nextcloud to access t
Under the Theming section in the admin settings you can add your own custom styling to the theme. Only standard CSS can be used. This custom styling will be applied whenever the theme is enabled and only affects the Breeze Dark theme.
## Known issues
### Login image not shown when theme is enabled
This is caused by the way this theme accesses custom login images. There are 2 workarounds to fix the issue:
#### First workaround (recommended)
Switch to using pretty URLs. Pretty URLs are URLs where the index.php isn't present. For Apache, you can follow [these steps](https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#pretty-urls) from the documentation and for Nginx I recommend having a look at the [example config](https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html) from the documentation
#### Second workaround
You can use the custom styling functionality and add the following CSS rule
```
body#body-login {
background-image: url('../../../index.php/apps/theming/image/background'), url('../../../core/img/background.png') !important;
}
```
## Contributions
### Issues

View File

@ -80,7 +80,7 @@
#body-login {
background-color: var(--color-main-background) !important;
background-image: url("../../../apps/theming/image/background"),
background-image: url("../../../index.php/apps/theming/image/background"),
url("../../../core/img/background.png") !important;
}

View File

@ -80,7 +80,7 @@
#body-login {
background-color: var(--color-main-background) !important;
background-image: url("../../../apps/theming/image/background"),
background-image: url("../../../index.php/apps/theming/image/background"),
url("../../../core/img/background.png") !important;
}