Skip to content

Make sure identity templates do not run code after navigation #62105

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

Merged
merged 1 commit into from
May 26, 2025

Conversation

ilonatommy
Copy link
Member

The expectation of the template was that lines of code after each navigation won't be executed.

Description

  • Add missing returns
  • Or use else blocks
  • Remove one return that was not needed and looked awkward.

Fixes https://github.com/dotnet/AspNetCore-ManualTests/issues/3657

@ilonatommy ilonatommy added this to the 10.0-preview6 milestone May 26, 2025
@ilonatommy ilonatommy requested a review from javiercn May 26, 2025 10:33
@ilonatommy ilonatommy self-assigned this May 26, 2025
@github-actions github-actions bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label May 26, 2025
@ilonatommy ilonatommy added area-blazor Includes: Blazor, Razor Components and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels May 26, 2025
@ilonatommy ilonatommy enabled auto-merge (squash) May 26, 2025 10:50
@ilonatommy ilonatommy merged commit 3bb7795 into dotnet:main May 26, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants