feat: [VAN-1291] add recommendation page (#743)

This commit is contained in:
Attiya Ishaque
2023-02-17 17:02:25 +05:00
committed by GitHub
parent ee6a6f0d2d
commit 1f21a874b8
15 changed files with 409 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ export const REGISTER_PAGE = '/register';
export const RESET_PAGE = '/reset';
export const AUTHN_PROGRESSIVE_PROFILING = '/welcome';
export const DEFAULT_REDIRECT_URL = '/dashboard';
export const RECOMMENDATIONS = '/recommendations';
export const PASSWORD_RESET_CONFIRM = '/password_reset_confirm/:token/';
export const PAGE_NOT_FOUND = '/notfound';
export const ENTERPRISE_LOGIN_URL = '/enterprise/login';

View File

@@ -49,8 +49,8 @@ export const updatePathWithQueryParams = (path) => {
return `${path}${queryParams}`;
};
export const getAllPossibleQueryParams = () => {
const urlParams = QueryString.parse(window.location.search);
export const getAllPossibleQueryParams = (locationURl = null) => {
const urlParams = QueryString.parse(locationURl || window.location.search);
const params = {};
Object.entries(urlParams).forEach(([key, value]) => {
if (AUTH_PARAMS.indexOf(key) > -1) {