ardalis / ardalis/OrganizingAspNetCore

Controller in one feature returns view from separate feature

Open
#6 2 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
C#
Stars
210
Forks
57
PR merge metrics
No merged PRs in 30d

Description

The current version has two features:
* Ninjas
* Samurai

Each has a SwordsController with an Index.cshtml view inside of a Swords subfolder.

Going to /ninjas/swords hits the SwordsController in /Features/Ninjas and returns the expected View.
Going to /samurai/swords hits the SwordsController in /Features/Samurai but returns the view from /Features/Ninjas/Swords/index.cshtml.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing /ninjas/swords and /samurai/swords, then compare the SwordsController and Index.cshtml locations under /Features/Ninjas and /Features/Samurai. Trace how each controller resolves its view; done means each route returns the Index view from its own feature folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.