ProcessModule::getAfterLoginUrl() method

URL to redirect to after non-authenticated user is logged-in, or false if module does not support

When supported, module should gather any input GET vars and URL segments that it recognizes, sanitize them, and return a URL for that request. ProcessLogin will redirect to the returned URL after user has successfully authenticated.

If module does not support this, or only needs to support an integer 'id' GET var, then this method can return false.

Usage

$string = ProcessModule::getAfterLoginUrl(Page $page);

Arguments

NameType(s)Description
pagePage

Requested page

Return value

string


ProcessModule methods and properties

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #541
    In the 541st issue of ProcessWire Weekly we'll share the latest core development news, check out a new module called Search Corrections, and more. Read on!
    Weekly.pw / 21 September 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer