I have menu items Home, About, and Contact. I only want Home to be accessible by Anon users, and About/Contact to be accessible by authenticated users. This works great using a Sitemap and using SecurityTrimming. My issue is that it seems when an Anon user clicks on About/Contact, the default redirect is login.aspx. Since my Login.aspx page is in a folder called Accounts (I also have other management pages here) I need to change the redirect URL from "login.aspx" to "~/Accounts/Login.aspx" I have been searching for a way to configure this for a few hours now to no avail. Any suggestions?
How to change the URL that securitytrimming will redirect the user to?
53 Views Asked by Josh McKearin At
1
There are 1 best solutions below
Related Questions in URL
- how to prepend www if the url string does not has www?
- Fetching URL vars into form and submitting to other page
- index.php url need to hide from homepage of php website
- Iframe not passing url parameters
- Object not found! The requested URL was not found on this server. PHP file not being accessed
- How can hide url value in php
- How parse makeHttpRequest with friendly url?
- Import .rda from URL into R
- Upload info that appear when share web link on Facebook
- Hiding param of struts.xml values in Struts 2
- PHP get public facing base directory from URL
- How to change URL form with GET method?
- how to get the URL from mainActivity to the second activity using intents?
- Using a dash in Struts 2 action name
- How do I load an HTTP URL with App Transport Security enabled in iOS 9?
Related Questions in SITEMAP
- What should be the name of the sitemap file for Google SEO?
- Generating sitemap.xml in tapestry
- Is there a way to get the site map of a domain?
- Wordpress - custom sitemap
- How to add location specific urls to sitemap?
- Rails: Get path / url without knowing the object's class (sitemap for multiple models)
- How to create google sitemap structure
- Django Sitemap Framework. Accepting query parameters
- HTTP/S Site Maps
- Generating a sitemap in Polymer?
- how to add custom url to sitemap in wordpress
- MvcSiteMapProvider store all nodes in database
- dynamic-spree-sitemaps installation in rails
- Check if .NET MVC Sitemap exists
- generate dynamic sitemaps in a laravel project without using composer
Related Questions in ASP.NET-4.5
- Error: member names cannot be the same at their enclosing type
- AspNetSession layout renderer not working
- How to link code for button function to checkboxlist in C#?
- Cant query or insert on mysql database using EF6
- remove ctl00$ from server side button inside master page and make it postback
- SignalR notifications not working. Is IIS required?
- Form Authentication inside VS 2013
- Does ServiceStack work with .NET 4.5?
- Fail to connect an ASP.NET Web Client to a Web API 2.0 individual account authentication server
- Why Cast (CType/DirectCast) controls versus implicit conversion
- What is the equivalent to EF 5's Update/Create Code First model creation in EF 6?
- How to generate Excel form EPPluse which has group column header
- Check box inside repeater , How to get command name value in the check changed function
- Why does List(of Int32) get JSON serialized as ArrayList?
- Scaffolder unable to load EDMX metadata after upgrading to .NET4.5 and EF5
Related Questions in SECURITY-TRIMMING
- Sharepoint 2013 search result Security trimminng
- ASP.NET Core MVC Navigation Security Trimming
- Menu link security trimming
- How to affect single child nodes when Security Trimming a SiteMap?
- Show/Hide custom menu items as based on Roles/Web.sitemap file
- Looking for elegant and secure way for security-trimming "edit" views
- How to change the URL that securitytrimming will redirect the user to?
- Trimming whitespace from usernames and passwords
- How to use Custom SiteMapProvider in ASP NET MVC?
- roles based menu does not work, what am I doing wrong?
- SharePoint 2010: Trimming page content based on group
- How does XmlSiteMapProvider check user to be in specified role?
- File managment on Azure blob storage
- MVCSiteMapProvider: Using security trimming with ouput cache returns empty sitemap
- Security trimming in search web service
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
of course, after hours of trying to find the answer to this, I post a StackOverflow question and find the answer immediately after. For future Googlers...
First, make sure you are using
Then, inside of this, make sure you are using a "forms" node with a "loginurl" attribute. Set that attribute to your login page URL ("~/Account/Login.aspx" in my case).
Leaving you this (at the bare-minimum)