# Generate token button opens invalid URL

**URL:** <https://community.sonarsource.com/t/generate-token-button-opens-invalid-url/74135>\
**Category:** Eclipse\
**Created:** [October 6, 2022, 3:09pm UTC](https://community.sonarsource.com/t/generate-token-button-opens-invalid-url/74135 "2022-10-06T15:09:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomvdbussche](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tomvdbussche](https://community.sonarsource.com/u/tomvdbussche)\
**Post date:** [October 6, 2022, 3:09pm UTC](https://community.sonarsource.com/t/generate-token-button-opens-invalid-url/74135/1 "2022-10-06T15:09:27Z")

</div>

# Setup

- Operating system: Fedora Linux 36
- SonarLint plugin version: 7.5.0.54140
- Programming language you’re coding in: Java
- Is connected mode used:
  - Connected to SonarQube (and which version): 9.6.1 (build 59531)

# Problem

When clicking the `Generate token` button (see image below) I get redirected to the following URL:

`https://my.sonarqube.server//account/security`

The URL however is invalid and points to a page that does not exist. The actual link should be `https://my.sonarqube.server/account/security` (see the duplicated `//`).

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/1/2/12ef484074e0ddd0666d185d9e095c8611f65b22.png)

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [October 10, 2022, 11:53am UTC](https://community.sonarsource.com/t/generate-token-button-opens-invalid-url/74135/2 "2022-10-10T11:53:45Z")

</div>

Hi @tomvdbussche ,

I have created a [ticket](https://sonarsource.atlassian.net/browse/SLE-565) for this issue. In the meantime, simply remove the trailing `/` from the server URL in the previous step of the connexion wizard:  
 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/4/e/4e776b2c15ec9fa5c3c7f74a2dbd4aba6935997f.png)

Thanks for the feedback!
