Skip to content

Commit

Permalink
chore(pipeline): Add redirect for base /pipeline route (#19656)
Browse files Browse the repository at this point in the history
* chore(pipeline): Add redirect for base `/pipeline` route

* Update frontend/src/scenes/urls.ts

Co-authored-by: Tiina Turban <[email protected]>

---------

Co-authored-by: Tiina Turban <[email protected]>
  • Loading branch information
Twixes and tiina303 authored Jan 8, 2024
1 parent 6a55c7e commit 91c6bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/scenes/scenes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ export const redirects: Record<
'/project/settings': urls.settings('project'),
'/organization/settings': urls.settings('organization'),
'/me/settings': urls.settings('user'),
'/pipeline': urls.pipeline(),
}

export const routes: Record<string, Scene> = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/scenes/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const urls = {
personByUUID: (uuid: string, encode: boolean = true): string =>
encode ? `/persons/${encodeURIComponent(uuid)}` : `/persons/${uuid}`,
persons: (): string => '/persons',
// TODO: Default to the landing page, once it's ready
pipeline: (tab?: PipelineTabs): string => `/pipeline/${tab ? tab : PipelineTabs.Destinations}`,
pipelineApp: (id: string | number, tab?: PipelineAppTabs): string =>
`/pipeline/${id}/${tab ? tab : PipelineAppTabs.Configuration}`,
Expand Down

0 comments on commit 91c6bcf

Please sign in to comment.