Skip to content

Commit

Permalink
fix: home routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernanda-Kipper committed Jul 14, 2024
1 parent 2374d21 commit e4c938d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/app.routes.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Routes } from '@angular/router';

export const routes: Routes = [
{ path: '', redirectTo: 'eventos', pathMatch: 'full' },
{
path: 'eventos',
path: '',
loadComponent: () =>
import('./pages/home/home.component').then((c) => c.HomeComponent),
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/create-event/create-event.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class CreateEventComponent implements OnInit {
this.eventsService.createEvent(data).subscribe({
next: () => {
this.isLoading.set(false);
this.router.navigate(['/eventos']);
this.router.navigate(['/']);
},
error: (error) => {
this.isLoading.set(false);
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
content="Encontre os melhores eventos de tecnologia no Brasil. Fique por dentro das últimas tendências e inovações."
/>
<meta property="og:image" content="URL_da_Imagem_para_Sharing" />
<meta property="og:url" content="https://eventostec.com.br/" />
<meta property="og:url" content="https://eventostec.com.br" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
Expand Down

0 comments on commit e4c938d

Please sign in to comment.