Skip to content

[6.x]: Custom cpTrigger not working #19121

@white-lukas

Description

@white-lukas

What happened?

Description

When using a custom cpTrigger, the login page is loading, but when submitting the login form it still posts to /admin/login as it's route is defined in the build file (resources/build/assets/LoginController-BCiywUg9.js)

Steps to reproduce

  1. setup craft
  2. set custom cpTrigger in general.php
  3. try to login

Expected behavior

login form should post to {cpTrigger}/login instead of admin/login

Craft CMS version

6.0.0-alpha.7

PHP version

8.5.7

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions