Skip to content

Caliblur: Home Button doesn't include subdirectory #2908

@CodeShakingSheep

Description

@CodeShakingSheep

Describe the bug/problem
My Calibre instance is running in a subdirectory https://mydomain.tld/calibre. When I change the Calibre theme to Caliblur there is a small bug with the home button. The home button doesn't link to https://mydomain.tld/calibre but to https://mydomain.tld. The interesting thing is that

To Reproduce
Steps to reproduce the behavior:

  1. Install Calibre Web in a subdirectory
  2. Change theme to Caliblur
  3. Click on the home button in Caliblur
  4. See that you are being redirected to the root domain without the subdirectory

Expected behavior
The home button should link to Calibre web's correct installation directory (including the subdirectory).

Screenshots
image

Environment (please complete the following information):

  • OS: Debian 11
  • Python version: Python 3
  • Calibre-Web version: 0.6.20
  • Docker container: None
  • Special Hardware: none
  • Browser: Chrome

Additional context
Interestingly, the Calibre Web Link just below the Home Button is pointing to the correct directory including the subdirectory. I briefly checked Caliblur JavaScript and thre the href property is set to $(".navbar-brand")[0].href, see https://github.com/janeczku/calibre-web/blob/master/cps/static/js/caliBlur.js#L506.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions