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 aec2559bcb..e843a87329 100644 --- a/src/language/texts/en.ts +++ b/src/language/texts/en.ts @@ -251,7 +251,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}.', @@ -292,7 +292,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 f3fb69edd4..46c46daac1 100644 --- a/src/language/texts/nb.ts +++ b/src/language/texts/nb.ts @@ -254,7 +254,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}.', @@ -296,7 +296,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 71dfce9aae..7ac1293123 100644 --- a/src/language/texts/nn.ts +++ b/src/language/texts/nn.ts @@ -252,7 +252,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}.', @@ -294,7 +294,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()