Hi all, perhaps I already know the answer to this, but is there any way to conditionally render different views for a route?
My use-case is as follows: user visits my app, say myapp.com
and are presented with a nice landing page, showing off the features of the web app etc. After they log in, they will be presented with a dashboard. However, I really don’t want the URL to show myapp.com/dashbaord
, I’d rather it still showed myapp.com
for the main dashboard screen. This is most useful when building a SaaS app vs a website & CMS.
I’m guesisng that this might not currently be possible with Wappler due to its routing being based on .htaccess
rewrite rules instead of an application-based router - though I’m not sure.
Or maybe on the index.php
I can somehow check a user’s logged-in state and render views accordingly. Again, not sure how.
If this isn’t possible, can we add this as a feature request?
Many thanks.
Last updated: