<Routes @rendermode="@InteractiveServer" /> in App.razor file makes Blazor Identity components such as Login, Register Not Found

Ouverte
#1,214 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
bootstrap, csharp

Piste de recherche

Start by reproducing the reported authorization failure with .NET 9, BlazorBootstrap 3.5.0, and the supplied App.razor markup. Compare behavior with and without @rendermode on Routes; done means explaining whether BlazorBootstrap contributes to the failure and identifying a working setup for Identity routes.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

NOTE: We do not look at .zip attachments for issue investigation.

Describe the bug
Before scaffolding Blazor Identity, my Blazor Server App with Blazor.Bootstrap components works fine. After scaffolding Blazor Identity, authorization function totally doesn't work although @attribute [Authorize] was added.

It took a while to figure out the root cause is <Routes @rendermode="@InteractiveServer" /> in App.razor file. After changed <Routes @rendermode="@InteractiveServer" /> to , authorization function starts working.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • .NET Version: [.NET 9]
  • BlazorBootstrap: [3.5.0]
  • Blazor Server: [e.g. WebAssembly, Server]
  • Blazor Interactive Render Mode: [Auto]
  • Blazor Interactivity Location: [Per page/component]

Sample code

<ImportMap />
<HeadOutlet @rendermode="@InteractiveServer" />
<script src="_framework/blazor.web.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.0.1/chart.umd.js" integrity="sha512-gQhCDsnnnUfaRzD8k1L5llCCV6O9HN09zClIzzeJ8OJ9MpGmIlCxm+pdCkqTwqJ4JcjbojFr79rl2F1mzcoLMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-plugin-datalabels/2.2.0/chartjs-plugin-datalabels.min.js" integrity="sha512-JPcRR8yFa8mmCsfrw4TNte1ZvF1e3+1SdGMslZvmrzDYxS69J7J49vkFL8u6u8PlPJK+H3voElBtUCzaXj+6ig==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdn.jsdelivr.net/npm/sortablejs@latest/Sortable.min.js"></script> <script src="_content/Blazor.Bootstrap/blazor.bootstrap.js"></script>

GitHub repo
GitHub repo with minimal code to reproduce the issue.

Desktop (please complete the following information):

  • OS: [Windows]
  • Browser [chrome]
  • Version [11]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Langage dominant
HTML
Étoiles
1.2k
Forks
111
Merge moyen
4 min
PR mergées (30 j)
55

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de vikramlearning/blazorbootstrap

Toutes les issues de vikramlearning/blazorbootstrap

Issues similaires

Plus d'issues Security

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.