Tweak page URL defaulting

This commit is contained in:
J. Ryan Stinnett 2019-02-08 13:53:17 +00:00
parent 5ab3c8b823
commit 7a15bb65c4
3 changed files with 12 additions and 5 deletions

View file

@ -460,10 +460,11 @@ const LoggedInView = React.createClass({
case PageTypes.HomePage:
{
const pagesConfig = this.props.config.pages;
let pageUrl;
let pageUrl = null;
if (pagesConfig) {
pageUrl = pagesConfig.homeUrl;
} else {
}
if (!pageUrl) {
// This is a deprecated config option for the home page
// (despite the name, given we also now have a welcome
// page, which is not the same).