From bd8a156d9b8341b948e46cdd95c6a4dda20c77b1 Mon Sep 17 00:00:00 2001 From: David Ovrelid Date: Wed, 13 May 2026 14:08:10 +0200 Subject: [PATCH] =?UTF-8?q?bytt=20A2=20/ui/Profile-lenker=20til=20A3-URL-e?= =?UTF-8?q?r=20i=20spr=C3=A5kfiler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/instantiate/containers/PartySelection.tsx | 2 ++ src/language/texts/en.ts | 4 ++-- src/language/texts/nb.ts | 4 ++-- src/language/texts/nn.ts | 4 ++-- test/e2e/integration/stateless-app/party-selection.ts | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/features/instantiate/containers/PartySelection.tsx b/src/features/instantiate/containers/PartySelection.tsx index 85b1143c6f..90b35c601c 100644 --- a/src/features/instantiate/containers/PartySelection.tsx +++ b/src/features/instantiate/containers/PartySelection.tsx @@ -26,6 +26,7 @@ import { changeBodyBackground } from 'src/utils/bodyStyling'; import { getPageTitle } from 'src/utils/getPageTitle'; import { HttpStatusCodes } from 'src/utils/network/networking'; import { capitalizeName } from 'src/utils/stringHelper'; +import { getHostname } from 'src/utils/urls/appUrlHelper'; import type { ApplicationMetadata } from 'src/features/applicationMetadata/types'; import type { IParty } from 'src/types/shared'; @@ -207,6 +208,7 @@ export const PartySelection = () => { ? 'party_selection.seeing_this_override' : 'party_selection.seeing_this_preference' } + params={[getHostname()]} /> diff --git a/src/language/texts/en.ts b/src/language/texts/en.ts index 7125b9ef23..2de36cdb7b 100644 --- a/src/language/texts/en.ts +++ b/src/language/texts/en.ts @@ -248,7 +248,7 @@ export function en() { 'instantiate.authorization_error_ask': 'If you are representing a person it is the one you are representing that can give you the required rights to start this service. If you are you representing an organization you have to ask for the required rights from persons with access delegation rights within your organization.', 'instantiate.authorization_error_check_rights': - 'See who has rights to delegate access under "Others with rights within the organization".', + 'See who has rights to delegate access under "Others with rights within the organization".', 'instantiate.authorization_error_info_rights': 'Learn more about roles and rights.', 'instantiate.authorization_error_info_customer_service': 'You can also contact customer service at {0}.', @@ -289,7 +289,7 @@ export function en() { 'party_selection.show_sub_unit': 'Show sub units', 'party_selection.why_seeing_this': 'Why am I seeing this?', 'party_selection.seeing_this_preference': - 'You can change your [profile settings](https://altinn.no/ui/Profile) to not get prompted for party selection each time you start a new instance. You can find this setting under **Profile** > **Advanced settings** > **Do not ask what party I represent each time I start to fill in a new form**.', + 'You can change your [profile settings](https://af.{0}/profile/parties) to not get prompted for party selection each time you start a new instance. You can find this setting under **Profile** > **Parties**.', 'party_selection.seeing_this_override': 'This app has been configured to always prompt you for party selection.', 'payment.pay': 'Pay', 'payment.summary': 'Summary', diff --git a/src/language/texts/nb.ts b/src/language/texts/nb.ts index c2f404c9f7..9076e6fd6f 100644 --- a/src/language/texts/nb.ts +++ b/src/language/texts/nb.ts @@ -251,7 +251,7 @@ export function nb() { 'instantiate.authorization_error_ask': 'Om du representerer en person, er det den du representerer som kan gi deg rettighet til å starte tjenesten. Representerer du en organisasjon er det de som har rollen tilgangsstyring innad i organisasjonen som kan gi deg rettighet.', 'instantiate.authorization_error_check_rights': - 'Se hvem som har rollen tilgangsstyring under "Andre med rettigheter til virksomheten".', + 'Se hvem som har rollen tilgangsstyring under "Andre med rettigheter til virksomheten".', 'instantiate.authorization_error_info_rights': 'Her finner du mer informasjon om roller og rettigheter.', 'instantiate.authorization_error_info_customer_service': 'Du kan også kontakte oss på brukerservice {0}.', @@ -293,7 +293,7 @@ export function nb() { 'party_selection.show_sub_unit': 'Vis underenheter', 'party_selection.why_seeing_this': 'Hvorfor ser jeg dette?', 'party_selection.seeing_this_preference': - 'Du kan endre [profilinnstillingene](https://altinn.no/ui/Profile) dine for å ikke bli spurt om aktør hver gang du starter utfylling av et nytt skjema. Du finner denne innstillingen under **Profil** > **Avanserte innstillinger** > **Jeg ønsker ikke å bli spurt om aktør hver gang jeg starter utfylling av et nytt skjema**.', + 'Du kan endre [profilinnstillingene](https://af.{0}/profile/parties) dine for å ikke bli spurt om aktør hver gang du starter utfylling av et nytt skjema. Du finner denne innstillingen under **Profil** > **Aktører**.', 'party_selection.seeing_this_override': 'Denne appen er satt opp til å alltid spørre om aktør.', 'payment.pay': 'Betal', 'payment.summary': 'Oppsummering', diff --git a/src/language/texts/nn.ts b/src/language/texts/nn.ts index c3fec52308..7a512d8462 100644 --- a/src/language/texts/nn.ts +++ b/src/language/texts/nn.ts @@ -249,7 +249,7 @@ export function nn() { 'instantiate.authorization_error_ask': 'Om du representerer ein person, er det den du representerer som kan gi deg dei naudsynte rettane til å starte tenesta. Representerer du ein organisasjon er det personar som har rolla tilgangsstyring innad i organisasjonen som kan gi deg dei naudsynte rettane.', 'instantiate.authorization_error_check_rights': - 'Sjå kven som har rolla tilgangsstyring under "Andre med rettar til verksemda".', + 'Sjå kven som har rolla tilgangsstyring under "Andre med rettar til verksemda".', 'instantiate.authorization_error_info_rights': 'Her finn du meir informasjon om roller og rettar.', 'instantiate.authorization_error_info_customer_service': 'Du kan også kontakte oss på brukarservice {0}.', @@ -291,7 +291,7 @@ export function nn() { 'party_selection.show_sub_unit': 'Vis undereiningar', 'party_selection.why_seeing_this': 'Kvifor ser eg dette?', 'party_selection.seeing_this_preference': - 'Du kan endra [profilinnstillingane](https://altinn.no/ui/Profile) dine for å ikkje bli spurt om aktør kvar gong du startar utfylling av eit nytt skjema. Du finn denne innstillinga under **Profil** > **Avanserte innstillingar** > **Eg ønskjer ikkje å bli spurt om aktør kvar gong eg startar utfylling av eit nytt skjema**.', + 'Du kan endra [profilinnstillingane](https://af.{0}/profile/parties) dine for å ikkje bli spurt om aktør kvar gong du startar utfylling av eit nytt skjema. Du finn denne innstillinga under **Profil** > **Aktørar**.', 'party_selection.seeing_this_override': 'Denne appen er sett opp til å alltid spørja om aktør.', 'payment.pay': 'Betal', 'payment.summary': 'Oppsummering', diff --git a/test/e2e/integration/stateless-app/party-selection.ts b/test/e2e/integration/stateless-app/party-selection.ts index b1fe7cecd5..bf763967a7 100644 --- a/test/e2e/integration/stateless-app/party-selection.ts +++ b/test/e2e/integration/stateless-app/party-selection.ts @@ -22,7 +22,7 @@ describe('Stateless party selection', () => { cy.startAppInstance(appFrontend.apps.stateless, { cyUser: 'accountant' }); cy.get(appFrontend.partySelection.appHeader).should('be.visible'); - cy.findByText(/Jeg ønsker ikke å bli spurt om aktør hver gang/).should('be.visible'); + cy.findByText(/ikke bli spurt om aktør hver gang/).should('be.visible'); cy.findAllByText(/personnr\. \d+/) .first()