Unverified Commit 9500376c authored by chrisgarrity's avatar chrisgarrity Committed by GitHub

Merge pull request #3746 from chrisgarrity/fix-contact-us

Fix contact-us mistakes
parents 1d80c946 501a5d8f
...@@ -4,10 +4,10 @@ const React = require('react'); ...@@ -4,10 +4,10 @@ const React = require('react');
const FormattedMessage = require('react-intl').FormattedMessage; const FormattedMessage = require('react-intl').FormattedMessage;
const HelpForm = props => { const HelpForm = props => {
const prefix = 'https://mitscratch.freshdesk.com/widgets/feedback_widget/new?&widgetType=embedded&widgetView=yes&screenshot=No&searchArea=No&captcha=yes'; const prefix = 'https://mitscratch.freshdesk.com/widgets/feedback_widget/new?&widgetType=embedded&widgetView=yes&screenshot=No&searchArea=No';
const title = `formTitle=${props.title}`; const title = `formTitle=${props.title}`;
const username = `helpdesk_ticket[custom_field][cf_scratch_name_40167]=${props.user.username || ''}`; const username = `helpdesk_ticket[custom_field][cf_scratch_name_40167]=${props.user.username || ''}`;
const agentText = encodeURI(window.navigator.userAgent.replace(';', ' -')); const agentText = encodeURIComponent(window.navigator.userAgent);
const browser = `helpdesk_ticket[custom_field][cf_browser_40167]=${agentText}`; const browser = `helpdesk_ticket[custom_field][cf_browser_40167]=${agentText}`;
const formSubject = `helpdesk_ticket[subject]=${props.subject}`; const formSubject = `helpdesk_ticket[subject]=${props.subject}`;
const formDescription = `helpdesk_ticket[description]=${props.body}`; const formDescription = `helpdesk_ticket[description]=${props.body}`;
......
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
}, },
{ {
"name": "contact-us", "name": "contact-us",
"pattern": "^/contact-us/?$", "pattern": "^/contact-us/?(\\?.*)?$",
"routeAlias": "/contact-us/?$", "routeAlias": "/contact-us/?",
"view": "contact-us/contact-us", "view": "contact-us/contact-us",
"title": "Contact Us", "title": "Contact Us",
"viewportWidth": "device-width" "viewportWidth": "device-width"
......
...@@ -39,7 +39,7 @@ class ContactUs extends React.Component { ...@@ -39,7 +39,7 @@ class ContactUs extends React.Component {
<p><FormattedMessage <p><FormattedMessage
id="contactUs.intro" id="contactUs.intro"
values={{faqLink: ( values={{faqLink: (
<a href="/faq"><FormattedMessage id="contactUs.faqLinkText" /></a> <a href="/info/faq"><FormattedMessage id="contactUs.faqLinkText" /></a>
)}} )}}
/></p> /></p>
<p><FormattedMessage id="contactUs.forumsInfo" /></p> <p><FormattedMessage id="contactUs.forumsInfo" /></p>
...@@ -53,13 +53,13 @@ class ContactUs extends React.Component { ...@@ -53,13 +53,13 @@ class ContactUs extends React.Component {
<li><FormattedMessage <li><FormattedMessage
id="contactUs.scriptsForum" id="contactUs.scriptsForum"
values={{scriptsLink: ( values={{scriptsLink: (
<a href="/discuss/4/"><FormattedMessage id="contactUs.scriptsLinkText" /></a> <a href="/discuss/7/"><FormattedMessage id="contactUs.scriptsLinkText" /></a>
)}} )}}
/></li> /></li>
<li><FormattedMessage <li><FormattedMessage
id="contactUs.bugsForum" id="contactUs.bugsForum"
values={{bugsLink: ( values={{bugsLink: (
<a href="/discuss/4/"><FormattedMessage id="contactUs.bugsLinkText" /></a> <a href="/discuss/3/"><FormattedMessage id="contactUs.bugsLinkText" /></a>
)}} )}}
/></li> /></li>
</ul> </ul>
...@@ -69,7 +69,7 @@ class ContactUs extends React.Component { ...@@ -69,7 +69,7 @@ class ContactUs extends React.Component {
<nav> <nav>
<ol> <ol>
<li className="nav-header"><FormattedMessage id="contactUs.findHelp" /></li> <li className="nav-header"><FormattedMessage id="contactUs.findHelp" /></li>
<li><a href="/faq"><FormattedMessage id="contactUs.faqLinkText" /></a></li> <li><a href="/info/faq"><FormattedMessage id="contactUs.faqLinkText" /></a></li>
</ol> </ol>
</nav> </nav>
<HelpForm <HelpForm
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment