Page MenuHomeWrite.as

Configurable landing route
Closed, ResolvedPublic

Description

Overview

Instance admins should be able to change the default route all users arrive on, when unauthenticated. This enables uses such as sending users to the login page automatically.

Implementation

Add a new property in the [app] configuration section that indicates the default landing page. If none set, default to /. Sample values: login, about

After checking the user session in handleViewHome(), check this config value and redirect user accordingly.

Event Timeline

matt triaged this task as High priority.Apr 11 2019, 2:53 AM
matt created this task.

So let's say I set default landing page to about. Does it means that when visitor lands, he/she will be redirected to /about, or will stay on / but about page will be rendered there?

I was considering to rewrite landing.tmpl in a way that it would show about page content on top and last posts (pretty much /reader) below.

Mastodon by default redirects to /about page from root /.

matt removed matt as the assignee of this task.May 6 2019, 1:49 PM

I think we'd just redirect people to the correct route -- this would allow instance admins to set it to anything they want without modifying the app itself. For example, they could even choose a default blog to land on if they're running a multi-user instance.

Those landing page changes sound interesting.. We should definitely discuss more, especially to balance it with the customization people will be able to do once T565: Edit landing page is finished.

I'm going to go ahead and finish this up.

I'll necrobump this and point out that I think @gytisrepecka is talking about something I'm referencing in T576 (a landing page).