Skip to content

APP_URL is ignored in blade views leading to broken paths to included files. #1820

Description

@credomane

Background (please complete the following information):

  • Panel Version 0.7.16
  • Server's OS: Debian 10.2
  • Your Computer's OS & Browser: Win8.1 & Firefox.

Describe the bug
Installing pterodactyl with APP_URL = https://example.com/pterodactyl/ doesn't work as expected
Technically it works but all included files are broken when actually visiting https://example.com/pterodactyl/ because they have incorrect urls.

To Reproduce
Steps to reproduce the behavior:

  1. Install pterodactyl as normal
  2. In .env set APP_URL to https://example.com/pterodactyl/
  3. Use any browser to visit https://example.com/pterodactyl/
  4. HTML loads but all included files fail to load.

Expected behavior
Pterodactyl to behave as normal.

Proposed Solution
I'm linking a gist with a patch file that seems to fix the issue. I've successfully logged in, created a node, imported custom egg, created a server and started/stopped said server. The patch itself.

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