Redirecting to a new page when visiting the root discourse page

(Salman, Freelance Developer) #1

Looking for input on how to best design this extension/plugin.

For non-loggedin users, whenever they visit the main discourse page, they should get redirected to a new landing page which will have a signup/login link and some sales copy on the page.

How exactly can I hook into ember for the main page and redirect if the user isn’t logged in?

Custom Landing/Home Page
Custom Intro page for discourse
(Robin Ward) #2

How about making logins required? You can customize the landing page then, see:

(Salman, Freelance Developer) #3

Yeah I thought about that but I have to verify if the requirement is to actually lock people out (and search engines).

Any thoughts on if this redirect is strictly for the main page?

(David O'Dea) #4

I had played around around with a couple of different options when I was faced with a similar scenario as yours @rubydoob.

What I finally settled on was to have my “landing page” located on the root of the domain i.e displaying the requisite marketing / info etc.

Then I’d have a login link pointing at a subdomain i.e

I appreciate that this may not be exactly suited to your needs but it worked great for me.