Redirect logged-in users to conversations page

AI-generated summary

BrianC is attempting to redirect logged-in users to the AI bot conversations page (discourse-ai/ai-bot/conversations) while maintaining the /latest page for anonymous users. He has tried theme components and the Homepage for Groups plugin without success, and is seeking a solution to achieve this redirect on login. He wants to continue using a Versatile Banner for the default guest homepage. MihirR initially misunderstood the request, thinking it was about personal conversations or routing to the AI directly. Lilly points to a previous solution (https://meta.discourse.org/t/how-to-set-the-home-page-to-be-an-ai-bot-ex-ask-discourse-com/365126/17) but notes a current issue where the page renders blank for anonymous users. BrianC confirms the desire to keep /latest for anonymous users and wants the Homepage for Groups plugin to handle the login redirect, while Lilly questions the utility of /latest if users primarily interact with the bot. BrianC reiterates his goal of full Discourse operation with a login redirect to the AI Bot page and continued access to all features via menus.

Greetings,

I am trying to figure out how to redirect any logged in user to my discourse-ai/ai-bot/conversations page. I would like every logged in user to see this page when logged in. I can use menus for access to /latest. I have tried various theme components which change the link and logo as desired by logging in still lands on /latest. I can change the homepage with a component, but it changes for guests also. The built-in permalinks would also change for both guests/users. I want guests to see the default /latest because I use Versatile Banner like a homepage for guests to see.

Does anyone have a solution on how to achieve this?

Seems like a worthy setting to be included in Discourse core to give some additional flexibility on site management and experience.

If you are asking about your personal conversation, then I guess you would have to manually add guests to the conversation, and direct routing to it won’t be possible.

If you are talking about routing just to the AI, then you can have a look at: Creating Routes in Discourse and Showing Data

Thanks @MihirR. I’m just looking to redirect all users to their own conversations page. I’ll have to research the routing option is that is a possibility for my goals which are login and be shown the new page for everyone.

pfaffman and i solved this already - How to set the home page to be an AI bot? ex: ask.discourse.com - #17 by Lilly

edit: oh I see, the page loads a blank for anon now. hmmm, i think there is a solution here somewhere…

it totally works if you make your site login only. what do you want anon visitors to see?

Hi Lilly, I would like not logged in Anon users to see the normal /latest page. I want all logged in users to see the AI Bot page. So the intent of the Homepage for Groups plugin is intended to handle the initial redirect when logging in? I wasn’t certain about that, but it seemed that is the intent. I have tried various ways but not successful so far.

but what is there to see at latest if members are just having conversations with bot?

The goal is to leave the Discourse site in full operation but users to be presented the AI Bot page on login. I will have a navbar link for /latest. Currently I am using the Versatile Banner with code that does a good job at creating a traditional landing page for a website with information about the site. That banner does not display when the AI Bot page is displayed to anon guests. Really just looking for a login redirect to this “other” page and then the users can use all of the features available in Discourse via menus.