Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17927229
D11289.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
988 B
Referenced Files
None
Subscribers
None
D11289.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11289: T6870, Return to previous page after login via header
Attached
Detach File
Event Timeline
Log In to Comment