Skip to content

Commit 840733f

Browse files
author
Lasim
committed
refactor: update routing to redirect users to MCP server instead of dashboard
1 parent c82ae2e commit 840733f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

services/frontend/src/router/index.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ const routes = [
4949
component: () => import('../views/Logout.vue'),
5050
meta: { requiresSetup: true }, // Or false, depending on whether logout should be accessible if setup isn't complete
5151
},
52-
{
53-
path: '/dashboard',
54-
name: 'Dashboard',
55-
component: () => import('../views/Dashboard.vue'),
56-
meta: { requiresSetup: true },
57-
},
52+
// Dashboard temporarily disabled - redirect users to MCP Server instead
53+
// {
54+
// path: '/dashboard',
55+
// name: 'Dashboard',
56+
// component: () => import('../views/Dashboard.vue'),
57+
// meta: { requiresSetup: true },
58+
// },
5859
{
5960
path: '/plugin-demo',
6061
name: 'PluginDemo',
@@ -209,9 +210,9 @@ router.beforeEach(async (to, from, next) => {
209210
// currentUser remains null, proceed as unauthenticated for safety
210211
}
211212

212-
// If user is logged in and trying to access Login or Register, redirect to Dashboard
213+
// If user is logged in and trying to access Login or Register, redirect to MCP Server
213214
if (currentUser && (to.name === 'Login' || to.name === 'Register')) {
214-
next('/dashboard');
215+
next('/mcp-server');
215216
return;
216217
}
217218

services/frontend/src/views/Login.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ const onSubmit = form.handleSubmit(async (values) => {
107107
const data = await UserService.login(values.login, values.password)
108108
console.log('Login successful!', data)
109109
110-
// Handle successful login - redirect to dashboard or home
111-
router.push('/dashboard')
110+
// Handle successful login - redirect to MCP server page
111+
router.push('/mcp-server')
112112
113113
} catch (e) {
114114
console.error('Login error:', e);

0 commit comments

Comments
 (0)