I have created a site default page to display a terms and conditions. The user must accept the terms and conditions before they are brought to their dashboard. The new default page (disclaimer page) is created using Aikau. On load it checks if the user has already agreed to the T&Cs. At this point if they have I want to redirect them to the dashboard. I cant figure out how to do it using aikau. I have written a service widget which I can include on the page but I cant figure out how to call a method on the service widget that does the navigation for them.
I saw this on IRC… you were asking about publishing on load, it is possible to define a "publishOnReady" array in your pages. Each entry in the array will be an object consisting of a publishTopic and publishPayload that should be published when the page first loads.