Skip to content

Public folder in a subdirectory on staging / prod breaks Nova #4266

@arkoe

Description

@arkoe
  • Laravel Version: 9.11
  • Nova Version: 4.0
  • PHP Version: 8.1
  • Database Driver & Version: MySQL
  • Operating System and Version: CentOS
  • Browser type and version: Any

Description:

Whenever you access Nova in a subdirectory, for example: https://staging.mydomain.com/myproject/admin it redirect you to https://staging.mydomain.com/myproject/myproject/admin/login. Whatever the URL is after the TLD, it will just add it towards the URL.

For example, if the URL would've been: https://staging.mydomain.com/this/is/a/test/admin it will redirect you to https://staging.mydomain.com/this/is/a/test/this/is/a/test/admin/login

After moving the project to an actual domain name such as https://www.myproject.com everything works as expected.

Detailed steps to reproduce the issue on a fresh Nova installation:

2 options:

  1. After a fresh installation, move the public folder 1 or more subdirectories deeper (change the relative paths in server.php and public/index.php)
  2. Move the whole applications some layers deep.

Basically any configuration where you can't access the application in the domains root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions