Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit dddbcfe

Browse files
authored
Merge pull request #233 from utkarsha-deriv/utkarsha/fix-redirect-links-opening-in-new-page
2 parents 124b00a + 1a67171 commit dddbcfe

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

docs/languages/javascript/websocket-connection/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Now, open the `index.html` file in our browser and check your developer console.
7272

7373
### Send and receive data
7474

75-
Our WebSocket server provides [ping/pong](/api-explorer#ping) functionality. Let's use it in our demo project to send and receive data. Change the event listeners for `open` and `message` as below:
75+
Our WebSocket server provides <a href="/api-explorer#ping" target="_blank" rel="noopener noreferrer">ping/pong</a> functionality. Let's use it in our demo project to send and receive data. Change the event listeners for `open` and `message` as below:
7676

7777
:::caution
7878
The `send` function on the WebSocket connection, only receives `string`, `ArrayBuffer`, `Blob`, `TypedArray` and `DataView`. You can read more about them on [MDN](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send). This means, if we want to send an `object`, we have to stringify it with `JSON.stringify` first.

docs/setting-up-a-deriv-application.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ description: How to setup Deriv application
1515

1616
#### Deriv account
1717

18-
If you don't have a Deriv account yet, you can easily create one by visiting our signup page or using the [new_account_virtual](/api-explorer#new_account_virtual) API call. It's completely free. And if you have an account already, please log in using your account details. To avoid any accidental loss of funds during testing, we recommend using your demo account instead of a real account.
18+
If you don't have a Deriv account yet, you can easily create one by visiting our signup page or using the <a href="/api-explorer#new_account_virtual" target="_blank" rel="noopener noreferrer">new_account_virtual</a> API call. It's completely free. And if you have an account already, please log in using your account details. To avoid any accidental loss of funds during testing, we recommend using your demo account instead of a real account.
1919

20-
To earn markup, get a Deriv real account to receive your monthly earnings. You can also create a real account using [new_account_real](/api-explorer#new_account_real) or [new_account_maltainvest](/api-explorer#new_account_maltainvest) API calls.
20+
To earn markup, get a Deriv real account to receive your monthly earnings. You can also create a real account using <a href="/api-explorer#new_account_real" target="_blank" rel="noopener noreferrer">new_account_real</a> or <a href="/api-explorer#new_account_maltainvest" target="_blank" rel="noopener noreferrer">new_account_maltainvest</a> API calls.
2121

2222
:::caution
2323
To create Deriv applications, you'll need an API token with the Admin scope for the account you wish to use for your application.
@@ -33,7 +33,7 @@ To create a new API token, follow these steps:
3333
2. Provide a name for your token
3434
3. Click **Create**
3535

36-
Alternatively, you can create an API token via the [api_token](/api-explorer#api_token) API call.
36+
Alternatively, you can create an API token via the <a href="/api-explorer#api_token" target="_blank" rel="noopener noreferrer">api_token</a> API call.
3737

3838
:::caution
3939
You need a token with the `Admin` scope to create an application.

src/features/Home/GetStarted/GetStarted.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ export const GetStarted = () => {
1818
Get started with our API in 3 simple steps:
1919
</Text>
2020
<nav className={styles.cardContainer}>
21-
<Link
22-
to='/docs/category/guides'
23-
className={styles.mainPageCard}
24-
data-testid='guide'
25-
target='_blank'
26-
>
21+
<Link to='/docs/category/guides' className={styles.mainPageCard} data-testid='guide'>
2722
<img src='/img/guide.svg' className={styles.cardIcon} />
2823
<section>
2924
<Text type='subtitle-1' bold className={`${styles.dark} ${styles.header}`} as='h2'>
@@ -53,12 +48,7 @@ export const GetStarted = () => {
5348
<img src='img/home-arrow.svg' />
5449
</figure>
5550
</Link>
56-
<Link
57-
to='/dashboard'
58-
className={styles.mainPageCard}
59-
data-testid='register'
60-
target='_blank'
61-
>
51+
<Link to='/dashboard' className={styles.mainPageCard} data-testid='register'>
6252
<img src='/img/register-your-app.svg' className={styles.cardIcon} />
6353
<section>
6454
<Text type='subtitle-1' bold className={`${styles.dark} ${styles.header}`} as='h2'>

0 commit comments

Comments
 (0)