Skip to content

Commit 372ed3c

Browse files
committed
Update to only use the stored sessionNav on /thrive paths
1 parent 0281b4a commit 372ed3c

File tree

1 file changed

+4
-1
lines changed
  • src/shared/containers/TopcoderHeader

1 file changed

+4
-1
lines changed

src/shared/containers/TopcoderHeader/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ const TopcoderHeader = ({ auth }) => {
3030

3131
// if there's a stored nav type in session storage, retrieve it and overwrite type
3232
const sessionNavType = sessionStorage.getItem('uni-nav[navType]');
33-
if (sessionNavType && (sessionNavType === 'tool' || sessionNavType === 'marketing')) {
33+
const url = window.location.pathname;
34+
35+
//Only use the set sessionStorage value for navType on the /thrive paths, for now. Probably will change in the future...
36+
if (url.includes('/thrive') && sessionNavType && (sessionNavType === 'tool' || sessionNavType === 'marketing')) {
3437
type = sessionNavType;
3538
}
3639

0 commit comments

Comments
 (0)