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

Commit 9b37262

Browse files
author
vikasrohit
committed
AS#162402573361607, Cannot reach member page if handle contains a period
-- Fixed loading member profile urls with dot in it for dev environment -- Fixed the issue of not being able to load profile with dot in username
1 parent 5f361e2 commit 9b37262

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

app/profile/profile.controller.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import moment from 'moment'
2828
'COPILOT': 'copilot'
2929
}
3030

31-
logger.debug()
3231
vm.status = {
3332
'badges': CONSTANTS.STATE_LOADING,
3433
'stats': CONSTANTS.STATE_LOADING,

app/services/jwtInterceptor.service.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ import { isTokenExpired, getFreshToken } from 'tc-accounts'
2727
.catch(function(err) {
2828
// Server will not or cannot refresh token
2929
logger.debug('Unable to refresh V3 token, redirecting to login')
30-
var next = $state.href('dashboard', {}, {absolute: true})
31-
$window.location = CONSTANTS.ACCOUNTS_APP_URL + '?retUrl=' + encodeURIComponent(next)
3230

3331
return null
3432
})
@@ -82,9 +80,7 @@ import { isTokenExpired, getFreshToken } from 'tc-accounts'
8280

8381
// logger.debug('idToken: ' + idToken)
8482
if (!TcAuthService.isAuthenticated() || idToken == null) {
85-
// logger.debug('redirecting to accounts app')
86-
var next = $state.href('dashboard', {}, {absolute: true})
87-
$window.location = CONSTANTS.ACCOUNTS_APP_URL + '?retUrl=' + encodeURIComponent(next)
83+
logger.debug(String.supplant('Skipping authToken for "{url}, UnAuthenticated user"', config))
8884
return
8985
}
9086

webpack.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ const config = require('appirio-tech-webpack-config')({
3737
}
3838
})
3939

40+
if (process.env.ENV === 'DEV') {
41+
config.devServer = config.devServer ? config.devServer : {}
42+
config.devServer.proxy = [
43+
{
44+
path: /\/members\/.*/,
45+
bypass: function(req, res, proxyOptions) {
46+
return '/index.html';
47+
}
48+
}
49+
]
50+
}
51+
52+
console.log(config)
53+
4054
if (CI) config.output.publicPath = process.env.ASSET_PREFIX
4155

4256
if (accountsAppURL) {

0 commit comments

Comments
 (0)