nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.38k stars 4.07k forks source link

[Bug]: Can't go back from PDF/TXT/MD document #37339

Closed enoch85 closed 6 months ago

enoch85 commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

When opening a TXT, MD, or PDF from the files app, it's not possible to push the "back-button" in the browser to go back and close the open file.

Steps to reproduce

  1. Open a PDF/txt/md file
  2. Hit the back button in your browser
  3. Notice the address field changes, but nothing happens

Expected behavior

File should be closed and you should go back to the last location.

Installation method

Community Manual installation with Archive

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
           "XXX"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "25.0.3.2",
        "overwrite.cli.url": "https:\/\/samarbeta.boverket.se",
        "htaccess.RewriteBase": "\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "default_phone_region": "SE",
        "default_language": "sv",
        "force_language": "sv",
        "default_locale": "sv_SE",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "skeletondirectory": "\/srv\/skeleton",
        "defaultapp": "dashboard,files",
        "allow_user_to_change_display_name": false,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "maintenance": false,
        "simpleSignUpLink.shown": false,
        "loglevel": 2,
        "share_folder": "\/Delade dokument",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "guest_app"
        ],
        "twofactor_enforced_excluded_groups": [],
        "app_install_overwrite": [
            "wopi"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - activity: 2.17.0
  - admin_audit: 1.15.0
  - bruteforcesettings: 2.5.0
  - circles: 25.0.0
  - cloud_federation_api: 1.8.0
  - comments: 1.15.0
  - contacts: 5.1.0
  - contactsinteraction: 1.6.0
  - dashboard: 7.5.0
  - dav: 1.24.0
  - deck: 1.8.3
  - federatedfilesharing: 1.15.0
  - federation: 1.15.0
  - files: 1.20.1
  - files_accesscontrol: 1.15.1
  - files_automatedtagging: 1.15.2
  - files_lock: 26.0.0
  - files_pdfviewer: 2.6.0
  - files_rightclick: 1.4.0
  - files_sharing: 1.17.0
  - files_trashbin: 1.15.0
  - files_versions: 1.18.0
  - flow_notifications: 1.5.0
  - forms: 3.2.0
  - groupfolders: 13.1.1
  - guests: 2.3.0
  - logreader: 2.10.0
  - lookup_server_connector: 1.13.0
  - nextcloud_announcements: 1.14.0
  - notifications: 2.13.1
  - notify_push: 0.6.0
  - oauth2: 1.13.0
  - officeonline: 2.0.0
  - password_policy: 1.15.0
  - polls: 4.1.8
  - privacy: 1.9.0
  - provisioning_api: 1.15.0
  - recommendations: 1.4.0
  - related_resources: 1.0.3
  - serverinfo: 1.15.0
  - settings: 1.7.0
  - sharebymail: 1.15.0
  - support: 1.8.0
  - systemtags: 1.15.0
  - text: 3.6.0
  - theming: 2.0.1
  - twofactor_backupcodes: 1.14.0
  - twofactor_totp: 7.0.0
  - twofactor_webauthn: 1.1.2
  - updatenotification: 1.15.0
  - user_saml: 5.1.2
  - viewer: 1.9.0
  - weather_status: 1.5.0
  - welcome: 1.0.8
  - workflow_script: 1.10.0
  - workflowengine: 2.7.0
Disabled:
  - encryption
  - files_external
  - firstrunwizard: 2.13.0
  - photos: 1.6.0
  - survey_client: 1.12.0
  - suspicious_login
  - user_ldap
  - user_status: 1.4.0
  - wopi: 3.5.11

Nextcloud Signing status

It's ok

Nextcloud Logs

Not applicaple

Additional info

This has been an issue for quite some time, but never got around to report it.

szaimen commented 1 year ago

I think this is rather an enhancment since the feature is not implemented afaik. Cc @skjnldsv since this supposedly would need to be implemented in viewer iirc.

enoch85 commented 1 year ago

Yeah, I was about to post as feature request but it ended up as a bug as I think it's expected behavior (and others with me).

joshtrichards commented 6 months ago

Duplicate of nextcloud/viewer#486