Revolution: Redirect homepage to setup, before install

Created on 23 Mar 2021  路  4Comments  路  Source: modxcms/revolution

Feature request

Summary

After uploading Modx files to website, if you try to access the site's homepage it should redirect to the Modx setup page.

Why is it needed?

Currently after uploading Modx and browsing to the site's homepage, before running setup, the user is shown a Error 503 page for "Could not load MODX config file." This is an unfriendly design.

Suggested solution(s)

It would be a better UX design if the person is redirected directly to the Modx setup page.

Related issue(s)/PR(s)

Maybe be related to the new setup/installer design.

proposal

Most helpful comment

My thought was that this would only trigger:

  • if there is no config file,
  • the setup folder is there,
  • and setup is not locked

But maybe a redirect is too much, it could just be a notice stating that the next step is to run setup, some links to the getting started docs, etc...

modx-setup

All 4 comments

Nice idea! But it must be checked for the presence of the setup folder etc.

It would mean any visitor will be redirected to the setup.. I don't think that's a good idea to have a random visitor to be redirected to the setup.

@JoshuaLuckers Here, it seems to me, just before the site is installed. We can make a condition to check for the existence of a specific file.
Many CMSs work this way. And if the site is already installed, then do nothing, and even update via setup/ will take place via a direct link, without a redirect.

My thought was that this would only trigger:

  • if there is no config file,
  • the setup folder is there,
  • and setup is not locked

But maybe a redirect is too much, it could just be a notice stating that the next step is to run setup, some links to the getting started docs, etc...

modx-setup

Was this page helpful?
0 / 5 - 0 ratings