Skip to content

Commit

Permalink
Merge pull request #152 from episerver/bugfix/AFORM-4391-Music-festiv…
Browse files Browse the repository at this point in the history
…al-render-wrong-non-master-langage-form

Fix react music festival render wrong form non master version
  • Loading branch information
Tson-optimizely authored Sep 27, 2024
2 parents 1fbeb3b + 6967e0d commit a560edc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion samples/musicfestival-backend-dotnet/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Runtime.InteropServices;
using EPiServer.Cms.Shell;
using EPiServer.Cms.Shell.UI;
using EPiServer.Cms.UI.AspNetIdentity;
using EPiServer.ContentApi.Cms;
using EPiServer.ContentApi.Core.DependencyInjection;
Expand Down Expand Up @@ -59,7 +60,8 @@ public void ConfigureServices(IServiceCollection services)
services
.AddCmsAspNetIdentity<ApplicationUser>()
.AddCms()
.AddAdminUserRegistration()
.AddAdminUserRegistration(options => options.Behavior = RegisterAdminUserBehaviors.Enabled |
RegisterAdminUserBehaviors.LocalRequestsOnly)
.AddEmbeddedLocalization<Program>()
.ConfigureForExternalTemplates()
.Configure<ExternalApplicationOptions>(options => options.OptimizeForDelivery = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function BuyTicketPage({ content }: BuyTicketPageProps) {
<Form
key={key}
formKey={key}
language={c.ContentLink.Ex}
language={c.ContentLink.Expanded.Language.Name}
baseUrl={process.env.REACT_APP_HEADLESS_FORM_BASE_URL ?? "/"}
identityInfo={identityInfo}
history={history}
Expand Down

0 comments on commit a560edc

Please sign in to comment.