Skip to content

Commit 13b08fa

Browse files
committed
Adjust /me redirections to /settings/tokens
1 parent 889c86d commit 13b08fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/routes/me/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export default class MeIndexRoute extends Route {
55
@service router;
66

77
redirect() {
8-
this.router.replaceWith('settings');
8+
// `cargo login` is showing links to https://crates.io/me to access the API tokens,
9+
// so we need to keep this route and redirect the user to the API tokens settings page.
10+
this.router.replaceWith('settings.tokens');
911
}
1012
}

0 commit comments

Comments
 (0)