Page MenuHomePhabricator

D11289.id.diff
No OneTemporary

D11289.id.diff

diff --git a/src/applications/auth/application/PhabricatorAuthApplication.php b/src/applications/auth/application/PhabricatorAuthApplication.php
--- a/src/applications/auth/application/PhabricatorAuthApplication.php
+++ b/src/applications/auth/application/PhabricatorAuthApplication.php
@@ -60,12 +60,17 @@
// Don't show the "Login" item on auth controllers, since they're
// generally all related to logging in anyway.
} else {
+ $uri = new PhutilURI('/auth/start/');
+ if ($controller) {
+ $path = $controller->getRequest()->getPath();
+ $uri->setQueryParam('next', $path);
+ }
$item = id(new PHUIListItemView())
->addClass('core-menu-item')
->setName(pht('Log In'))
// TODO: Login icon?
->setIcon('fa-sign-in')
- ->setHref('/auth/start/')
+ ->setHref($uri)
->setAural(pht('Log In'))
->setOrder(900);
$items[] = $item;

File Metadata

Mime Type
text/plain
Expires
Jul 31 2025, 2:19 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8730668
Default Alt Text
D11289.id.diff (988 B)

Event Timeline