nuxtron icon indicating copy to clipboard operation
nuxtron copied to clipboard

Incorrect navigation links in SPA mode

Open dzeso opened this issue 6 years ago • 2 comments

Hi. SPA mode in example still work incorrect way. In the beginning please see screenshot. I got it after installing example. But the main problem is that in SPA mode the main window shoul be loaded only once (https://en.wikipedia.org/wiki/Single-page_application#Running_locally). In example it is reloading by every navigation link. Could you correct it please?

dzeso avatar Jul 21 '19 09:07 dzeso

Hi. Can you create reproduction link? I will try to help.

Gimanh avatar Jul 29 '19 09:07 Gimanh

@dzeso you have to use the <nuxt-link /> component together with :to="{ name: index } for your links and in background.js the prod page should be called like that: await mainWindow.loadURL('app://index.html')

appinteractive avatar Apr 27 '20 18:04 appinteractive