Configurable landing route
Closed, ResolvedPublic



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.


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 created this task.Apr 11 2019, 2:53 AM
matt triaged this task as High priority.
matt moved this task from Far Future to Soon / v1.0 on the WriteFreely board.Apr 16 2019, 2:16 PM

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.

matt claimed this task.May 12 2019, 11:54 PM

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

agd added a subscriber: agd.May 14 2019, 7:34 PM

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