Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Setting up URL to a custom elevated session page in config/statamic/users.php won't work in Cp

Open Beginner friendly
#15,698 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
laravel, php

Research direction

Compare the redirect handling in cms/src/Http/Controllers/Auth/ElevatedSessionController.php with cms/src/Http/Controllers/CP/Auth/ElevatedSessionController.php, then check the configuration documented for the elevated session form. Make the custom URL work in Cp as it does in the non-Cp controller, and verify the Cp redirect behavior.

Written by the indexing model from the issue text.

Description

auth needs more info
Bug description

According to documentation (https://statamic.dev/tags/user-elevated_session_form#configuration) it is possible to set up URL to a custom elevated session page in config/statamic/users.php. This seems not to be true for Cp.

Redirect is implemented in (lines 22-24) cms/src/Http/Controllers/Auth/ElevatedSessionController.php
Redirect is not implemented in: cms/src/Http/Controllers/CP/Auth/ElevatedSessionController.php

How to reproduce

Check (lines 22-24) cms/src/Http/Controllers/Auth/ElevatedSessionController.php
Compare with cms/src/Http/Controllers/CP/Auth/ElevatedSessionController.php

It was introduced in:
https://github.com/statamic/cms/pull/14424/changes

Logs

Environment
not relevant
Installation

Other (please explain)

Additional details

No response

Dominant language
PHP
Stars
4.9k
Forks
647
Avg merge
1d 11h
Merged PRs (30d)
137

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statamic/cms

All issues in statamic/cms

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.