Skip to content

Commit

Permalink
fix navigation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvergnaud committed May 18, 2021
1 parent ce6ea91 commit 4fb709f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion WebSite/src/main/resources/libraries/WebSite.poc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ method sendDownloadEmail(email) {
emailBody = "Thank you for your interest in Prompto." + "\n" +
"We have registered your email to keep you posted on updates." + "\n" +
"Follow the below link to download and install Prompto on your local computer:" + "\n" +
"https://www.prompto.org/install";
"https://www.prompto.org/?section=install";
mail.addBody(emailBody, mimeType = "text/plain");
mail.send(hostName = "smtp-relay.sendinblue.com", port = 587, useTLS = true, login = "[email protected]", password = getEmailPassword(), useSSL = true);
}
Expand Down
17 changes: 12 additions & 5 deletions WebSite/src/web/src/components/home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ import Footer from './Footer';
import '../../assets/css/home.scss';

export default function Home(props) {
const divStyle = {display: props.visible ? "block" : "none"};
return (
const searchParams = new URLSearchParams(window.location.search);
const section = searchParams.get("section");
if(section) {
props.history.push("/" + section);
return <div/>;
} else {
const divStyle = {display: props.visible ? "block" : "none"};
return (
<article className="home" style={divStyle}>
<Header />
<Header/>
<Features history={props.history}/>
<Footer />
<Footer/>
</article>
);
);
}
}

0 comments on commit 4fb709f

Please sign in to comment.