File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 run : |
2626 yarn i
2727 yarn run build
28+ - name : Add 404 fallback for SPA 🔁
29+ run : cp dist/index.html dist/404.html
2830 - name : Deploy 🚀
2931 uses : JamesIves/github-pages-deploy-action@releases/v4
3032 with :
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export default {
144144 const authStore = useAuthStore ();
145145 authStore .clearAuth ();
146146 this .notloggedOut = await logOut ();
147- window .location .href = ' /' ;
147+ window .location .href = ' https://knowledgeonwebscale.github.io/solid-cockpit /' ;
148148 },
149149 homepageRedir(): void {
150150 redirectToHomepage ();
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { useAuthStore } from "./stores/auth";
1515 * The router here allows for navigation between different functional pages of the TRIPLE App
1616 */
1717const router = createRouter ( {
18- history : createWebHistory ( '/solid-cockpit/' ) ,
18+ history : createWebHistory ( import . meta . env . BASE_URL ) ,
1919 routes : [
2020 {
2121 name : "Home" ,
@@ -47,11 +47,6 @@ const router = createRouter({
4747 path : "/privacy" ,
4848 components : { default : EditPrivacy } ,
4949 } ,
50- {
51- name : "CatchAll" ,
52- path : '/:notFound(.*)' ,
53- components : NotFound ,
54- }
5550 ] ,
5651} ) ;
5752
You can’t perform that action at this time.
0 commit comments