diff --git a/index.html b/index.html
index c26d6c0..81a7d6c 100644
--- a/index.html
+++ b/index.html
@@ -23,8 +23,8 @@
- assine agora
- entrar
+ assine agora
+ entrar
diff --git a/public/views/home.view.html b/public/views/home.view.html
index c6b80d2..4a6af76 100644
--- a/public/views/home.view.html
+++ b/public/views/home.view.html
@@ -6,20 +6,20 @@
@@ -113,7 +113,7 @@
Multitelas
-
+
Escolher o Plano Multitelas
@@ -127,38 +127,38 @@ Descubra novos universos
-
+
diff --git a/public/views/not-found.view.html b/public/views/not-found.view.html
index c75bdd8..5271fbc 100644
--- a/public/views/not-found.view.html
+++ b/public/views/not-found.view.html
@@ -3,7 +3,7 @@
404
desculpe, mas a página que você solicitou não foi implementada
diff --git a/public/views/signin.view.html b/public/views/signin.view.html
index 70944a7..0744240 100644
--- a/public/views/signin.view.html
+++ b/public/views/signin.view.html
@@ -18,8 +18,8 @@ Entrar
minlength="8"
/>
diff --git a/src/router.ts b/src/router.ts
index d79de52..0f22090 100644
--- a/src/router.ts
+++ b/src/router.ts
@@ -12,6 +12,9 @@ import getElement from './utils/get-element.util';
import setClasses from './utils/set-classes.util';
import sleep from './utils/sleep.util';
+// Base URL
+import viteConfig from '../vite.config'
+
const navigateTo = (url: string): void => {
history.pushState(null, '', url);
router();
@@ -28,7 +31,7 @@ const router: () => Promise = async (): Promise => {
const potentialMatches: IPotentialMatch[] = routes.map((route: IRoute): IPotentialMatch => {
return {
route: route,
- isMatch: location.pathname === route.path
+ isMatch: location.pathname === `${viteConfig.base.substring(0, 7)}${route.path}`
}
});
diff --git a/src/views/home.view.ts b/src/views/home.view.ts
index 66d6abd..575e146 100644
--- a/src/views/home.view.ts
+++ b/src/views/home.view.ts
@@ -7,7 +7,7 @@ export default class HomeView extends AbstratctView {
}
async getHtml(): Promise {
- const url: string = '/views/home.view.html';
+ const url: string = '/hbomax/views/home.view.html';
const resquest: string = await fetch(url)
.then((data: Response): Promise => data.text())
diff --git a/src/views/not-found.view.ts b/src/views/not-found.view.ts
index 42c5711..8f56091 100644
--- a/src/views/not-found.view.ts
+++ b/src/views/not-found.view.ts
@@ -9,7 +9,7 @@ export default class NotFoundView extends AbstratctView {
}
async getHtml(): Promise {
- const url: string = '/views/not-found.view.html'
+ const url: string = '/hbomax/views/not-found.view.html'
const resquest: string = await fetch(url)
.then((data: Response): Promise => data.text());
diff --git a/src/views/signin.view.ts b/src/views/signin.view.ts
index ea83a2b..3dfbd72 100644
--- a/src/views/signin.view.ts
+++ b/src/views/signin.view.ts
@@ -10,7 +10,7 @@ export default class SignInView extends AbstratctView {
}
async getHtml(): Promise {
- const url: string = '/views/signin.view.html';
+ const url: string = '/hbomax/views/signin.view.html';
const resquest: string = await fetch(url)
.then((data: Response): Promise => data.text());
diff --git a/vite.config.ts b/vite.config.ts
index 3520a89..08d6153 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,5 +1,5 @@
import type { UserConfig } from 'vite'
export default {
- base: '/'
+ base: '/hbomax/'
} satisfies UserConfig
\ No newline at end of file