From 13b08faa79bffd3ea45aeb071a47acab5be4e205 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Tue, 21 Dec 2021 19:58:37 +0100 Subject: [PATCH] Adjust `/me` redirections to `/settings/tokens` --- app/routes/me/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/routes/me/index.js b/app/routes/me/index.js index e3844da4bbc..e39b5b5e8f9 100644 --- a/app/routes/me/index.js +++ b/app/routes/me/index.js @@ -5,6 +5,8 @@ export default class MeIndexRoute extends Route { @service router; redirect() { - this.router.replaceWith('settings'); + // `cargo login` is showing links to https://crates.io/me to access the API tokens, + // so we need to keep this route and redirect the user to the API tokens settings page. + this.router.replaceWith('settings.tokens'); } }