Thanks to visit codestin.com
Credit goes to github.com

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

Nikita/All API url links at deriv.com to be changed --> api.deriv.com #1937

Merged
merged 2 commits into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const domain_url =
export const domain_full_url = `https://${domain_url}`
export const deriv_app_id = domain_url === deriv_com_url ? deriv_com_app_id : deriv_me_app_id
export const deriv_app_url = `https://app.${domain_url}`
export const deriv_developer_url = `https://developers.${domain_url}`
export const deriv_api_url = `https://api.${domain_url}`
export const deriv_bot_app_url = `${deriv_app_url}/bot`
export const deriv_dp2p_app_url = `${deriv_app_url}/cashier/p2p`
export const deriv_mt5_app_url = `${deriv_app_url}/mt5`
Expand Down Expand Up @@ -70,7 +70,7 @@ export const localized_link_url = Object.freeze({
blog: blog_url,
community: community_url,
derivx: derivx_app_url,
developers: deriv_developer_url,
api: deriv_api_url,
dbot: deriv_bot_app_url,
deriv_app: deriv_app_url,
mt5: deriv_mt5_app_url,
Expand Down
4 changes: 2 additions & 2 deletions src/components/elements/off-canvas-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export const OffCanvasMenuWrapper = (props) => {
</StyledLink>
<StyledLink
to=""
type="developers"
type="api"
target="_blank"
external="true"
rel="noopener noreferrer"
Expand Down Expand Up @@ -583,7 +583,7 @@ export const OffCanvasMenuPartner = (props) => {
</StyledLink>
<StyledLink
to=""
type="developers"
type="api"
target="_blank"
external="true"
rel="noopener noreferrer"
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/footer/main-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect, is_eu_country }) => {
<LinkWrapper>
<Link
to=""
type="developers"
type="api"
target="_blank"
external="true"
rel="noopener noreferrer"
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,10 +955,10 @@ export const NavPartners = ({ no_login_signup }) => {
</NavLink>
<NavLink>
<StyledLink
active={current_page === 'developers'}
active={current_page === 'api'}
activeClassName="active"
to=""
type="developers"
type="api"
target="_blank"
external="true"
rel="noopener noreferrer"
Expand Down
2 changes: 1 addition & 1 deletion src/components/localization/localized-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ InternalLink.propTypes = {
const affiliate_links = ['affiliate_sign_in', 'affiliate_sign_up']
const deriv_app_links = ['dbot', 'deriv_app', 'mt5', 'derivx']
const deriv_other_products = ['binary', 'smart_trader']
const deriv_social_platforms = ['blog', 'community', 'developers', 'zoho']
const deriv_social_platforms = ['blog', 'community', 'api', 'zoho']
// add item to this array if you need to make an internal link open on a new tab without modal window
const new_tab_no_modal = ['terms_and_conditions']

Expand Down
2 changes: 1 addition & 1 deletion src/pages/partners/_partnership-opportunities.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const PartnershipOpportunities = () => (
</ClientCard>
<ClientCard
to=""
type="developers"
type="api"
target="_blank"
external="true"
rel="noopener noreferrer"
Expand Down