after_login can now receive a context variable (usually the controller)

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.