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

Commit 4ba45dc

Browse files
authored
Merge pull request #532 from Schpotsky/redirect-project-creation-2connect
redirect project creation to connect
2 parents ca9f244 + a0a28f2 commit 4ba45dc

File tree

6 files changed

+27
-10
lines changed

6 files changed

+27
-10
lines changed

conf/ApplicationServer.properties

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ SSO_HASH_SECRET = @ApplicationServer.SSO_HASH_SECRET@
4545
SSO_DOMAIN = @ApplicationServer.SSO_DOMAIN@
4646

4747
JWT_V3_COOKIE_KEY = @ApplicationServer.JWT_V3_COOKIE_KEY@
48-
JWT_COOKIE_KEY = @ApplicationServer.JWT_COOKIE_KEY@
48+
JWT_COOKIE_KEY = @ApplicationServer.JWT_COOKIE_KEY@
49+
50+
TOPCODER_CONNECT_URL=@TopcoderConnectUrl@

src/java/main/com/topcoder/direct/services/configs/ServerConfiguration.java

+5
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,9 @@ public class ServerConfiguration extends ApplicationServer {
5858
public static String JWT_V3_COOKIE_KEY = bundle.getProperty("JWT_V3_COOKIE_KEY", "v3jwt");
5959

6060
public static String JWT_COOKIE_KEY = bundle.getProperty("JWT_COOKIE_KEY", "tcjwt");
61+
62+
/**
63+
* The Topcoder Connect URL
64+
*/
65+
public static String TOPCODER_CONNECT_URL = bundle.getProperty("TOPCODER_CONNECT_URL", "https://connect.topcoder.com");
6166
}

src/web/WEB-INF/includes/newHeader.jsp

+7-5
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@
2525
-
2626
- Version 1.7 (TOPCODER - REMOVE TASKS TAB IN DIRECT APP)
2727
- - Remove tasks tab
28-
-
29-
- Version 1.4 (Quick72Hrs!! Topcoder - Remove VM Management Feature In Direct App version 1.0)
30-
- remove the vm related things
28+
-
29+
- Version 1.4 (Quick72Hrs!! Topcoder - Remove VM Management Feature In Direct App version 1.0)
30+
- remove the vm related things
3131
-
3232
- Description: The new cockpit header and navigation.
3333
--%>
3434
<%@ page import="com.topcoder.direct.services.configs.ServerConfiguration" %>
3535
<%@ include file="/WEB-INF/includes/taglibs.jsp" %>
3636

37+
<c:set var="TCConnectURL" value="<%=ServerConfiguration.TOPCODER_CONNECT_URL%>"/>
38+
3739
<!-- topcoder maintenance module -->
3840
<div id="topcoder-maintenance-notification">
3941
<div class="content">
@@ -132,7 +134,7 @@
132134

133135
<ul>
134136
<li>
135-
<a class="first" href="<s:url action="createNewProject" namespace="/"/>">Start New</a>
137+
<a class="first" href="${TCConnectURL}" target="_blank">Start New</a>
136138
</li>
137139
<s:if test="%{#session.currentSelectDirectProjectID > 0 && sessionData.currentProjectContext.name != null}">
138140
<input type="hidden" name="topNavCurrentProjectId" value="<s:property value='%{#session.currentSelectDirectProjectID}'/>"/>
@@ -422,7 +424,7 @@
422424
<c:if test="${requestScope.CURRENT_TAB eq 'enterprise' and !requestScope.NO_ENTERPRISE_DASHBOARD_TOP}">
423425
<div class="topBtns" id="enterpriseDashboardTop">
424426
<a href="${ctx}/copilot/launchCopilotContest" class="copilot" title="Finds a TopCoder Copilot for your project">Get a Copilot</a>
425-
<a href="<s:url action="createNewProject" namespace="/"/>" class="start" title="Starts a new project">Start a Project</a>
427+
<a href="${TCConnectURL}" target="_blank" class="start" title="Starts a new project">Start a Project</a>
426428
<a href="${ctx}/launch/home" class="launch" title="Launch a new challenge for your project">Launch Challenge</a>
427429
</div>
428430
</c:if>

src/web/WEB-INF/includes/right.jsp

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,18 @@
3232
- the data via ajax.
3333
-
3434
--%>
35+
<%@ page import="com.topcoder.direct.services.configs.ServerConfiguration" %>
3536
<%@ include file="/WEB-INF/includes/taglibs.jsp" %>
3637

38+
<c:set var="TCConnectURL" value="<%=ServerConfiguration.TOPCODER_CONNECT_URL%>"/>
39+
3740
<div id="area2" class="dashboardPage"><!-- the right column -->
3841

3942
<div class="newSidebar">
4043
<div class="topBtns">
4144
<a href="${ctx}/copilot/launchCopilotContest" class="copilot"
4245
title="Finds a TopCoder Copilot for your project">Get a Copilot</a>
43-
<a href="<s:url action="createNewProject" namespace="/"/>" class="start" title="Starts a new project">Start
44-
a Project</a>
46+
<a href="${TCConnectURL}" target="_blank" class="start" title="Starts a new project">Start a Project</a>
4547
<a href="${ctx}/launch/home" class="launch" title="Launch a new challenge for your project">Launch
4648
Challenge</a>
4749
</div>

token.properties.docker

+4-1
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,7 @@
349349
@aws_s3_secret_key@=
350350

351351
@trialBillingId@ =
352-
@defaultGroupIdForTrial@ =
352+
@defaultGroupIdForTrial@ =
353+
354+
# The Topcoder Connect Url to which the projects creation will redirect
355+
@TopcoderConnectUrl@=https://connect.topcoder-dev.com

token.properties.example

+4-1
Original file line numberDiff line numberDiff line change
@@ -397,4 +397,7 @@
397397
@authorizationUrl@=http://api.topcoder-dev.com/v3/authorizations
398398
@userGroupsApiEndpoint@=http://172.18.0.1:8080/v3/groups
399399
@trialBillingId@ = 3
400-
@defaultGroupIdForTrial@ = 12347
400+
@defaultGroupIdForTrial@ = 12347
401+
402+
# The Topcoder Connect Url to which the projects creation will redirect
403+
@TopcoderConnectUrl@=https://connect.topcoder.com

0 commit comments

Comments
 (0)