[gitlab] Fix token generation link

#IJPL-161647 Fixed

The old link was previously redirected until a recent update to GitLab.
This happened sometime between 17.0 and 17.4.

The fix cannot consider versions sadly, because GitLab does not
make a version visible without authentication.

As of this moment, we will break the generate functionality for
25% of users and fix it for 75%.

GitOrigin-RevId: d55f0270098a7c7a0cd8a4d152bd007b0be3eaba
This commit is contained in:
Chris Lemaire
2024-09-04 18:46:58 +02:00
committed by intellij-monorepo-bot
parent b970ea62c9
commit 308229f8a1

View File

@@ -13,7 +13,7 @@ object GitLabSecurityUtil {
internal fun buildNewTokenUrl(serverUri: String): String? {
val productName = ApplicationNamesInfo.getInstance().fullProductName
return parseEncoded("${serverUri}/-/profile/personal_access_tokens")
return parseEncoded("${serverUri}/-/user_settings/personal_access_tokens")
?.addParameters(
mapOf(
"name" to "$productName $DEFAULT_CLIENT_NAME",