Router-view does not refresh on Router-link

Summary

When using the router-view with a router-link, the Browser URL will reload but the page will not refresh with the updated contents.

To remedy this, simply add the following in the router-view:

 <router-view :key="$route.fullPath" />

This will enable the page to reload in a Vue.js SPA.

You must be logged in to post a comment.