Compare commits
3 Commits
98e05193ec
...
287e9a2a0e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
287e9a2a0e | ||
|
|
a03d1e8541 | ||
|
|
23fd84d85c |
@@ -11,5 +11,9 @@ export async function GET(req: Request) {
|
||||
const target = email
|
||||
? `${prefix}/min-sida/oversikt`
|
||||
: `${prefix}/min-sida/verifiera`;
|
||||
return NextResponse.redirect(new URL(target, url.origin));
|
||||
// Use the configured public origin — req.url.origin is the internal
|
||||
// container host (e.g. http://<hash>:3000) when behind Traefik.
|
||||
const base =
|
||||
process.env.NEXT_PUBLIC_SITE_URL ?? process.env.AUTH_URL ?? url.origin;
|
||||
return NextResponse.redirect(new URL(target, base));
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import Image from 'next/image';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { Link } from '@/i18n/routing';
|
||||
import { LanguageSwitcher } from './LanguageSwitcher';
|
||||
|
||||
export function Header() {
|
||||
const t = useTranslations('header');
|
||||
const c = useTranslations('common');
|
||||
const cu = useTranslations('customer');
|
||||
return (
|
||||
<header className="border-b border-brand-700 bg-brand-600 text-white">
|
||||
<div className="mx-auto flex max-w-5xl items-center justify-between gap-3 px-4 py-3 sm:py-5">
|
||||
@@ -28,7 +30,15 @@ export function Header() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<LanguageSwitcher />
|
||||
<div className="flex items-center gap-2 sm:gap-3">
|
||||
<Link
|
||||
href="/min-sida"
|
||||
className="rounded-md border border-white/20 bg-white/10 px-2.5 py-1 text-xs font-medium text-white backdrop-blur-sm transition-colors hover:bg-white/20 sm:px-3 sm:py-1.5"
|
||||
>
|
||||
{cu('navTitle')}
|
||||
</Link>
|
||||
<LanguageSwitcher />
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
|
||||
@@ -36,9 +36,7 @@ export function FulfillmentTable({
|
||||
{t('title')}
|
||||
</h3>
|
||||
<div className="flex gap-1">
|
||||
<form
|
||||
action={(fd) => startTransition(() => markAllDelivered(fd))}
|
||||
>
|
||||
<form action={markAllDelivered}>
|
||||
<input type="hidden" name="bookingId" value={bookingId} />
|
||||
<button
|
||||
type="submit"
|
||||
@@ -48,9 +46,7 @@ export function FulfillmentTable({
|
||||
↑ {t('deliverAll')}
|
||||
</button>
|
||||
</form>
|
||||
<form
|
||||
action={(fd) => startTransition(() => markAllReturned(fd))}
|
||||
>
|
||||
<form action={markAllReturned}>
|
||||
<input type="hidden" name="bookingId" value={bookingId} />
|
||||
<button
|
||||
type="submit"
|
||||
|
||||
Reference in New Issue
Block a user