open help pages on new tab
This commit is contained in:
parent
3300b5a37a
commit
b876e1e253
|
|
@ -23,7 +23,7 @@ import { truncate } from '../../helpers/utils';
|
|||
import HomePage from '../page/JKHomePage';
|
||||
|
||||
import JKHelp from '../help/JKHelp';
|
||||
import JKKnowladgeBase from '../help/JKKnowladgeBase';
|
||||
import JKKnowledgeBase from '../help/JKKnowledgeBase';
|
||||
import JKHelpDesk from '../help/JKHelpDesk';
|
||||
import JKForum from '../help/JKForum';
|
||||
import JKPrivacy from '../page/JKPrivacy';
|
||||
|
|
@ -276,7 +276,7 @@ function JKDashboardMain() {
|
|||
<Switch>
|
||||
<Route path="/privacy" component={JKPrivacy} />
|
||||
<Route path="/help" component={JKHelp} />
|
||||
<Route path="/knowladge-base" component={JKKnowladgeBase} />
|
||||
<Route path="/knowledge-base" component={JKKnowledgeBase} />
|
||||
<Route path="/help-desk" component={JKHelpDesk} />
|
||||
<Route path="/forum" component={JKForum} />
|
||||
<Route path="/unsubscribe" exact component={JKUnsubscribe} />
|
||||
|
|
|
|||
|
|
@ -3,13 +3,14 @@ import React, {useEffect} from 'react'
|
|||
const JKForum = () => {
|
||||
const pageUrl = "https://forum.jamkazam.com/"
|
||||
useEffect(() => {
|
||||
window.location.href = pageUrl;
|
||||
window.open(pageUrl, '_blank').focus();
|
||||
window.history.go(-1)
|
||||
return () => {
|
||||
};
|
||||
}, [])
|
||||
return (
|
||||
<div>
|
||||
redirecting...
|
||||
opening...
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,13 +3,14 @@ import React, {useEffect} from 'react'
|
|||
const JKHelp = () => {
|
||||
const pageUrl = "https://www.jamkazam.com/corp/help"
|
||||
useEffect(() => {
|
||||
window.location.href = pageUrl;
|
||||
window.open(pageUrl, '_blank').focus();
|
||||
window.history.go(-1)
|
||||
return () => {
|
||||
};
|
||||
}, [])
|
||||
return (
|
||||
<div>
|
||||
redirecting...
|
||||
opening...
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,13 +3,14 @@ import React, {useEffect} from 'react'
|
|||
const JKHelpDesk = () => {
|
||||
const pageUrl = "https://www.jamkazam.com/corp/help"
|
||||
useEffect(() => {
|
||||
window.location.href = pageUrl;
|
||||
window.open(pageUrl, '_blank').focus();
|
||||
window.history.go(-1)
|
||||
return () => {
|
||||
};
|
||||
}, [])
|
||||
return (
|
||||
<div>
|
||||
redirecting...
|
||||
opening...
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,18 @@
|
|||
import React, {useEffect} from 'react'
|
||||
|
||||
const JKKnowladgeBase = () => {
|
||||
const JKKnowledgeBase = () => {
|
||||
const pageUrl = "https://jamkazam.freshdesk.com/support/home"
|
||||
useEffect(() => {
|
||||
window.location.href = pageUrl;
|
||||
window.open(pageUrl, '_blank').focus();
|
||||
window.history.go(-1)
|
||||
return () => {
|
||||
};
|
||||
}, [])
|
||||
return (
|
||||
<div>
|
||||
redirecting...
|
||||
opening...
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default JKKnowladgeBase
|
||||
export default JKKnowledgeBase
|
||||
|
|
@ -83,7 +83,7 @@ export const helpRoutes = {
|
|||
exact: true,
|
||||
icon: 'question-circle',
|
||||
children: [
|
||||
{ to: '/knowladge-base', name: 'Knowladge Base' },
|
||||
{ to: '/knowledge-base', name: 'Knowledge Base' },
|
||||
{ to: '/help-desk', name: 'Help Desk'},
|
||||
{ to: '/forum', name: 'Forum'}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue