shack/assets/js/navigate.js

5 lines
154 B
JavaScript

// centralize navigation to simplify switching between client and server routing
export default function navigate(path) {
window.location.href = path;
}