Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v9 - UmbracoHelper GetDictionaryValue not working when Restrict Public Access is setup #11227

Closed
konius opened this issue Sep 30, 2021 · 3 comments

Comments

@konius
Copy link

konius commented Sep 30, 2021

Which exact Umbraco version are you using? For example: 8.13.1 - don't just write v8

9.0.0

Bug summary

When a page has Restrict Public Access and user gets redirected to "Login Page" the dictionary lookup doesn't work.

Going to the "Login Page" manually works as expected so something happens in the rewrite middleware.

Code I am using (there is no route hijacking - there was but simplified this to test) :

@inherits UmbracoViewPage<LoginPage>
@{
    Layout = null;
}

<h1>@Model.Name</h1>
<p>Dictionary: @Umbraco.GetDictionaryValue("UI.Account.DontHaveAnAccountYet")</p>

Screenshot 2021-09-30 114343
Screenshot 2021-09-30 114423
Screenshot 2021-09-30 114441
Screenshot 2021-09-30 114512

Specifics

No response

Steps to reproduce

  1. Setup a protected page
  2. Set Login Page
  3. Navigate to protected page
  4. Dictionary value is missing

Expected result / actual result

I'd expect the dictionary value to show.

@konius konius changed the title UmbracoHelper GetDictionaryValue not working when Restrict Public Access is setup v9 - UmbracoHelper GetDictionaryValue not working when Restrict Public Access is setup Sep 30, 2021
@bergmania
Copy link
Member

Hi @konius..

Thank you for the report.. I can repro, and will provide a fix for 9.0.1

bergmania added a commit that referenced this issue Oct 4, 2021
Set culture from domain when internal redirecting due to public access
@bergmania
Copy link
Member

PR: #11262

@nikolajlauridsen
Copy link
Contributor

Fixed in #11262

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants