I'm having an issue with the session not been filled after login-ing, but if I refresh the page manually it does. So as a workaround I'm trying to reload my login page after login was successful so the session will be populated with the data.
How do is use the goto? i tired goto('/') but it opens the index page. I'm looking for something dynamic and not use the page name.
And does anybody have an idea how to fill the session without reloading the page? session is been filled in 'sapper.middleware' in the server.js coed.