Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7829553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:49:27+00:00 2026-06-02T10:49:27+00:00

Currently, I have a Controller with an Index() action method that needs authorization: public

  • 0

Currently, I have a Controller with an Index() action method that needs authorization:

public partial class CustomerController : BaseDocumentStoreController
{
    [Authorize(Roles = AccountController.Administrator)]
    public virtual ViewResult Index()
    {
        ...
    }

    ...
}

With this in place, the respective node in the Mvc.sitemap won’t show in the breadcrumbs:

<mvcSiteMapNode     title="Customer"         controller="Customer" action="Index"
                    resourceKey="Customers"  clickable="true" >

    <mvcSiteMapNode title="Customer Add"     controller="Customer" action="Add"
                    resourceKey="Add"  />
    <mvcSiteMapNode title="Customer Create"  controller="Customer" action="Create"
                    resourceKey="Add" />
    <mvcSiteMapNode title="Customer Edit"    controller="Customer" action="Edit"
                    resourceKey="Edit" />
    <mvcSiteMapNode title="Customer Update"  controller="Customer" action="Update"
                    resourceKey="Edit" />
    <mvcSiteMapNode title="Customer Delete"  controller="Customer" action="Delete"
                    resourceKey="Delete" />
    <mvcSiteMapNode title="Customer Details" controller="Customer" action="Details"
                    resourceKey="Details" />
    <mvcSiteMapNode title="Customer Search"  controller="Customer" action="Search"
                    resourceKey="Search" />

</mvcSiteMapNode>

What I want is to show this node anyway…

Let’s say the user is not authenticated. So I want the breadcrumbs to show this:

Home > Customers > Add

Currently it only shows:

Add

If the user clicks the Customers node he’ll be redirected to the login view… OK, that’s fine!

I tried to implement my own SiteMapVisibilityProvider following these steps:

public class SiteMapVisibilityProvider : ISiteMapNodeVisibilityProvider
{
   ...
}

While debugging I could only see the nodes bellow the Index node, that is, in my current case, only the Add node showed up. The node that represents the Index action method didn’t show up in the debugging session.

Is there any way of achieving what I want?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:49:28+00:00Added an answer on June 2, 2026 at 10:49 am

    The problem most likely lies in the DefaultAclModule, which hides all nodes inaccessible to the current user. If you don’t want that functionality it can be disabled by setting securitytrimming to false, in the sitemap provider in web.config.

    You could also change the functionality by implementing a custom AclModule.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have this as a search: <%= form_tag users_path, :controller => 'users', :action
Let's say I have a ColorsController and a Colors/Index.cshtml View for that controller. I
I have currently the following routes: routes.IgnoreRoute({resource}.axd/{*pathInfo}); routes.IgnoreRoute({resource}.gif/{*pathInfo}); MvcRoute.MappUrl({controller}/{action}/{ID}) .WithDefaults(new { controller = home,
In my controller I have: @invoices = current_user.account.clients.map(&:invoices).flatten and in my index.html.erb I want
I currently have a controller were I would like to keep track of logging
Here is the thing. I currently have a tabBar controller, with several navigation controllers
I currently have a type that I inject into my controllers that's used for
I have an array of permissions: array( array( controller => somewhere, action => ,
I currently have an ASP.NET MVC application that exists. I want to add a
I currently have an ASP .NET MVC site that has two domains pointing to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.