Skip to content

[Bug]: Setup form does not respect custom webroot #41188

@HolonProduction

Description

@HolonProduction

⚠️ This issue respects the following points: ⚠️

Bug description

While I was setting up a Nextcloud instance under a custom webroot (<my-url>/cloud) I was prompted to create an Admin account. But the form was broken since its action did not respect the custom webroot, and was pointing to <my-url>/index.php instead of <my-url>/cloud/index.php. I was able to create an account by altering the markup and all other forms work fine (e.g. sign in).

Steps to reproduce

  1. Create a fresh nextcloud instance without creating an admin account
  2. Configure it with a custom webroot with overwritewebroot
  3. Open the url and inspect the target of the create admin form

Expected behavior

The form should respect my custom webroot.

Installation method

Community Docker image

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

throws error (since setup wasn't completed)

List of activated Apps

throws error (since setup wasn't completed)

Nextcloud Signing status

does not apply

Nextcloud Logs

empty

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions