Skip to content

Commit

Permalink
Fleet listing pages are visible without authentication (minmatarfleet…
Browse files Browse the repository at this point in the history
…#444)

* Fleet listing pages are visible without authentication

* Replaced AuthButton for direct link

* Redirect back to fleet page on auth
  • Loading branch information
beautifulmim authored Jun 5, 2024
1 parent f8e3e44 commit 941d83c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/pages/fleets/history.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ try {
const FLEET_LIST_PARTIAL_URL = translatePath(`/partials/fleet_list_component?upcoming=${JSON.stringify(false)}`)
import { get_auth_url } from '@helpers/env'
const AUTH_REDIRECT_URL = `${translatePath('/redirects/auth_init')}?redirect_url=${Astro.url}`
import Viewport from '@layouts/Viewport.astro';
Expand Down Expand Up @@ -114,7 +114,7 @@ const page_title = t('fleets.history.page_title');
<p>{t('authenticate_fleet_hint')}</p>
<ButtonStack>
<Button
href={get_auth_url()}
href={AUTH_REDIRECT_URL}
size='sm'
>
{t('authenticate')}
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/src/pages/fleets/upcoming.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ try {
const FLEET_LIST_PARTIAL_URL = translatePath(`/partials/fleet_list_component?upcoming=${JSON.stringify(true)}`)
import { get_auth_url } from '@helpers/env'
const AUTH_REDIRECT_URL = `${translatePath('/redirects/auth_init')}?redirect_url=${Astro.url}`
import Viewport from '@layouts/Viewport.astro';
Expand Down Expand Up @@ -121,7 +121,7 @@ const page_title = t('fleets.upcoming.page_title');
<p>{t('authenticate_fleet_hint')}</p>
<ButtonStack>
<Button
href={get_auth_url()}
href={AUTH_REDIRECT_URL}
size='sm'
>
{t('authenticate')}
Expand Down

0 comments on commit 941d83c

Please sign in to comment.