#850·bentopdf

(Bug) Small inconsistency in navigation

Author: raunkeCreated Sep 1, 2026Updated Sep 2, 2026
Labelsbug

Description

The navigation bar and "back to tools" button behave differently in different tools if BASE_URL is set.

  1. Clicking on the navigation bar logo/text on the top left correctly navigates to domain.tld/BASE_URL in all tool pages, except for
  • pdf-multi-tool.html
  • The main landing site / tool selection screen

On all tools, the corresponding html is

xml
<span id="nav-brand" class="text-white font-bold text-xl ml-2">
  <a href="/BASE_URL/">Branding</a>
</span>

But for example in pdf-multi-tool.html, it is

xml
<a href="/">Branding</a>   [[missing "/BASE_URL/"]]
  1. Clicking on the "Back to tools" button correctly navigates back to domain.tld/BASE_URL, but sometimes only to domain.tld. Incorrect navigation to domain.tld occurs in
  • deskew-pdf.html
  • remove-annotations.html
  • form-filler.html
  • remove-blank-pages.html
  • markdown-to-pdf.html while all (or at lost most) other tools correctly navigate to domain.tld/BASE_URL.

Steps to Reproduce

Use docker to build a bentopdf instance with the latest dockerfile:

yaml
# compose.yaml
services:
  bentopdf
    build:
      context: "https://github.com/alam00000/bentopdf.git#main"
      dockerfile: Dockerfile
      args:
        SIMPLE_MODE: "true"
        BASE_URL: "/BASE_URL/"
        SITE_URL: "https://domain.tld"
        VITE_BRAND_NAME: "Branding"
bash
docker compose up --build

Console Logs

bash
No errors to report

Sample PDF or File

No pdf files involved

Browser

Firefox

Browser Version

154.0.1

Operating System

Windows

BentoPDF Version

2.8.8

Additional Context

No response

Pre-submission Checklist

  • I have included console logs from the browser DevTools
  • I have attached a sample file or described how to reproduce the issue
  • I have searched existing issues to ensure this is not a duplicate