Skip to content

Commit

Permalink
fix: update imprint service
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Jul 18, 2024
1 parent f69ace2 commit 2e69cd7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/config/imprint.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import { createUrl, createUrlSearchParams } from "@acdh-oeaw/lib";

import { type Locale } from "@/config/i18n.config";

const baseUrl = "https://shared.acdh.oeaw.ac.at";
const pathname = "/acdh-common-assets/api/imprint.php";
import { type Locale } from "@/config/i18n.config";

export function createImprintUrl(locale: Locale, redmineId: string): URL {
return createUrl({
baseUrl,
pathname,
searchParams: createUrlSearchParams({
outputLang: locale,
serviceID: redmineId,
}),
baseUrl: "https://imprint.acdh.oeaw.ac.at",
pathname: `/${redmineId}`,
searchParams: createUrlSearchParams({ locale }),
});
}

0 comments on commit 2e69cd7

Please sign in to comment.