Office's Navigation Bar scrolls back to the top when selecting a heading

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 26 Spring v34.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu Server 24.04.4
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.68
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • 1.24.0
  • PHP version (e.g, 8.3):
    • 8.3.31
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Since I installed Nextcloud
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO (Docker)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Whenever I use the left navigation bar to jump to specific headings when editing Documents with Writer, the Navigation Bar scrolls back up/resets back to the top. I do manage to navigate to the correct header, but the navigation bar is reset back to the top, which is disorienting and annoying.

Steps to replicate it (hint: details matter!):

  1. When using Writer to edit a .docx file, make multiple headings of different sizes. Make about 10-20, or enough for you to require to scroll down in the Navigation Sidebar

  2. Open the Navigation sidebar by clicking on the compass icon on the left, and scroll down and click a heading at the bottom of the Outline Tab

  3. After clicking, the doc should jump to the correct header, but the navigation bar is reset, making it so its scrolled all the way to the top.

Before clicking the header:

After clicking the header:

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Debug
	core
	
RuntimeExceptionThe loading of lazy AppConfig values have been triggered by app "core"
	21 Jul 2026, 13:02:54
	
Info
	no app in context
	
The app config key dav/hide_absence_settings is not defined in the config lexicon
	21 Jul 2026, 13:02:54
	
Debug
	core
	
Slow session_start detected
	21 Jul 2026, 13:02:39
	
Debug
	no app in context
	
Exceptiondirty table reads: SELECT `id`, `color`, `document_id`, `last_awareness_message`, `last_contact`, `user_id`, `guest_name` FROM `*PREFIX*text_sessions` WHERE (`document_id` = :dcValue1) AND (`last_contact` > :dcValue2)
	21 Jul 2026, 13:02:39
	
Error
	index
	
DbalExceptionAn exception occurred while executing a query: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "previews_file_uniq_idx" DETAIL: Key (file_id, width, height, mimetype_id, cropped, version_id)=(205, 256, 331, 17, f, -1) already exists.

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

[viewer] Received post message Doc_PartChanged 
Object { Part: 29, PartCount: 30, DocType: "text" }
 
false Office.vue:437:1
TreeView onSelect: row "-1" not found 2 bundle.js:35292:38
TreeView onSelect: row "-1" not found bundle.js:35292:38
TreeView onSelect: row "-1" not found bundle.js:35292:38
[viewer] Received post message Doc_PartChanged 
Object { Part: 28, PartCount: 30, DocType: "text" }
 
false Office.vue:437:1
[viewer] Received post message Doc_PartChanged 
Object { Part: 29, PartCount: 30, DocType: "text" }
 
false Office.vue:437:1
TreeView onSelect: row "-1" not found 2 bundle.js:35292:38
[DEBUG] text: [PollingBackend] Fetching steps 
Object { app: "text", uid: "admin", level: 0, version: 4 }
index.mjs:38:17
[viewer] Received post message Doc_PartChanged 
Object { Part: 27, PartCount: 30, DocType: "text" }
 
false Office.vue:437:1
TreeView onSelect: row "-1" not found 2 bundle.js:35292:38

​


Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{

    "system": {

        "one-click-instance": true,

        "one-click-instance.user-limit": 100,

        "update_channel": "stable",

        "memcache.local": "\\OC\\Memcache\\APCu",

        "apps_paths": [

            {

                "path": "\/var\/www\/html\/apps",

                "url": "\/apps",

                "writable": false

            },

            {

                "path": "\/var\/www\/html\/custom_apps",

                "url": "\/custom_apps",

                "writable": true

            }

        ],

        "check_data_directory_permissions": false,

        "memcache.distributed": "\\OC\\Memcache\\Redis",

        "memcache.locking": "\\OC\\Memcache\\Redis",

        "redis": {

            "host": "***REMOVED SENSITIVE VALUE***",

            "timeout": 3,

            "read_timeout": 10,

            "password": "***REMOVED SENSITIVE VALUE***",

            "port": 6379

        },

        "overwritehost": "(Removed by myself)",

        "overwriteprotocol": "https",

        "serverid": 445,

        "passwordsalt": "***REMOVED SENSITIVE VALUE***",

        "secret": "***REMOVED SENSITIVE VALUE***",

        "trusted_domains": [

            "localhost",

            "as3r-cloud.ddns.net"

        ],

        "datadirectory": "***REMOVED SENSITIVE VALUE***",

        "dbtype": "pgsql",

        "version": "34.0.1.2",

        "overwrite.cli.url": "(Removed by myself)",

        "instanceid": "***REMOVED SENSITIVE VALUE***",

        "dbname": "***REMOVED SENSITIVE VALUE***",

        "dbhost": "***REMOVED SENSITIVE VALUE***",

        "dbtableprefix": "oc_",

        "dbuser": "***REMOVED SENSITIVE VALUE***",

        "dbpassword": "***REMOVED SENSITIVE VALUE***",

        "installed": true,

        "maintenance": false,

        "updatechecker": true,

        "updatedirectory": "\/nc-updater",

        "loglevel": 0,

        "app_install_overwrite": [

            "nextcloud-aio"

        ],

        "log_type": "file",

        "log_type_audit": "file",

        "logfile": "\/var\/www\/html\/data\/nextcloud.log",

        "logfile_audit": "\/var\/www\/html\/data\/audit.log",

        "log_rotate_size": 10485760,

        "log.condition": {

            "apps": [

                "admin_audit"

            ]

        },

        "preview_max_x": 2048,

        "preview_max_y": 2048,

        "jpeg_quality": 60,

        "enabledPreviewProviders": {

            "1": "OC\\Preview\\Image",

            "2": "OC\\Preview\\MarkDown",

            "3": "OC\\Preview\\MP3",

            "4": "OC\\Preview\\TXT",

            "5": "OC\\Preview\\OpenDocument",

            "6": "OC\\Preview\\Movie",

            "7": "OC\\Preview\\Krita",

            "0": "OC\\Preview\\Imaginary",

            "23": "OC\\Preview\\ImaginaryPDF"

        },

        "enable_previews": true,

        "upgrade.disable-web": true,

        "mail_smtpmode": "smtp",

        "trashbin_retention_obligation": "auto, 30",

        "versions_retention_obligation": "auto, 30",

        "activity_expire_days": 30,

        "simpleSignUpLink.shown": false,

        "share_folder": "\/Shared",

        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",

        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",

        "maintenance_window_start": 100,

        "allow_local_remote_servers": true,

        "davstorage.request_timeout": 3600,

        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",

        "htaccess.RewriteBase": "\/",

        "dbpersistent": false,

        "auth.bruteforce.protection.enabled": true,

        "ratelimit.protection.enabled": true,

        "files_external_allow_create_new_local": false,

        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",

        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",

        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",

        "DOMAIN": "(Removed by myself)",

        "AIO_VERSION": "v13.3.1"

    }

}




Apps

The output of occ app:list (if possible).

Enabled:
  - activity: 7.0.0
  - admin_audit: 1.24.0
  - appstore: 1.0.0
  - bruteforcesettings: 7.0.0
  - calendar: 6.5.0
  - circles: 34.0.0
  - cloud_federation_api: 1.18.0
  - comments: 1.24.0
  - contacts: 8.7.2
  - contactsinteraction: 1.15.0
  - dashboard: 7.14.0
  - dav: 1.39.0
  - deck: 1.18.2
  - federatedfilesharing: 1.24.0
  - federation: 1.24.0
  - files: 2.6.0
  - files_downloadlimit: 5.2.0-dev.0
  - files_lock: 34.0.0
  - files_pdfviewer: 7.0.0-dev.0
  - files_reminders: 1.7.0
  - files_sharing: 1.26.0
  - files_trashbin: 1.24.0
  - files_versions: 1.27.0
  - firstrunwizard: 7.0.0-dev.0
  - logreader: 7.0.0
  - lookup_server_connector: 1.22.0
  - nextcloud-aio: 0.8.0
  - nextcloud_announcements: 6.0.0
  - notes: 6.0.1
  - notifications: 7.0.0-dev.1
  - notify_push: 1.3.3
  - oauth2: 1.22.0
  - office: 1.0.0
  - password_policy: 6.0.0-dev.0
  - photos: 7.0.0
  - privacy: 6.0.0-dev.1
  - profile: 1.3.0
  - provisioning_api: 1.24.0
  - recommendations: 7.0.0
  - related_resources: 5.0.0-dev.0
  - richdocuments: 11.0.1
  - serverinfo: 6.0.0
  - settings: 1.17.0
  - sharebymail: 1.24.0
  - spreed: 24.0.2
  - support: 6.0.0
  - survey_client: 6.0.0-dev.0
  - systemtags: 1.24.0
  - tasks: 0.18.1
  - text: 8.0.0
  - theming: 2.9.0
  - twofactor_backupcodes: 1.23.0
  - twofactor_totp: 16.0.0
  - updatenotification: 1.24.0
  - user_status: 1.14.0
  - viewer: 7.0.0-dev.0
  - weather_status: 1.14.0
  - webhook_listeners: 1.6.0
  - whiteboard: 1.5.9
  - workflowengine: 2.16.0
Disabled:
  - app_api: 34.0.0 (installed 34.0.0)
  - encryption: 2.22.0
  - files_external: 1.26.0
  - suspicious_login: 12.0.0-dev.0
  - twofactor_nextcloud_notification: 8.0.0
  - user_ldap: 1.25.0