Skip to content

Commit

Permalink
Redirect base path to main website (search site stuff)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkView committed Jan 18, 2025
1 parent d51c917 commit 08f18da
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ import { TestingComponent } from "./testing/testing.component";
import { OverlayComponent } from "./overlay/overlay.component";
import { AgentSelectComponent } from "./agent-select/agent-select.component";
import { AutoswitchComponent } from "./autoswitch/autoswitch.component";
import { RedirectComponent } from "./redirect/redirect.component";

const routes: Routes = [
{
path: "",
component: RedirectComponent,
},
{
path: "overlay",
component: OverlayComponent,
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { AgentSelectComponent } from "./agent-select/agent-select.component";
import { SelectTeamInfoComponent } from "./agent-select/select-team-info/select-team-info.component";
import { SelectPlayerInfoComponent } from "./agent-select/select-player-info/select-player-info.component";
import { AutoswitchComponent } from "./autoswitch/autoswitch.component";
import { RedirectComponent } from "./redirect/redirect.component";

@NgModule({
declarations: [
Expand All @@ -47,6 +48,7 @@ import { AutoswitchComponent } from "./autoswitch/autoswitch.component";
SelectTeamInfoComponent,
SelectPlayerInfoComponent,
AutoswitchComponent,
RedirectComponent,
],
exports: [],
bootstrap: [AppComponent],
Expand Down
11 changes: 11 additions & 0 deletions src/app/redirect/redirect.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Component, OnInit } from "@angular/core";

@Component({
selector: "app-redirect",
template: ``,
})
export class RedirectComponent implements OnInit {
ngOnInit() {
window.location.href = "https://valospectra.com";
}
}

0 comments on commit 08f18da

Please sign in to comment.