Public share page title shows “Public file share - Nextcloud” instead of file name (Nextcloud 32, Docker)

Hello,

I’m currently running Nextcloud Hub 7 (32.0.0) using the official Docker image.

When I share a file or folder via a public link, the browser tab/page title always shows:
“Public file share - Nextcloud”
I would like it to display the actual file or folder name (as it used to do in older versions).

Here’s what I’ve tried so far:

  • Edited core/templates/layout.public.php to customize the <title>, but the title gets overwritten by JavaScript after the page loads.

  • I’m using the default theme and haven’t applied any custom themes or third-party plugins.

  • I have seen related discussions and this pull request which supposedly fixes the issue in newer versions, but I am still experiencing the problem on 32.0.0.

Is there a way to make the public share page title show the file/folder name in Nextcloud 32?

Thank you for your help!