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 answers
Related Questions in URL
- how do I change a URL with form to include additional selection
- Blog Post URL In flutter Web
- Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?
- Non-Expiring Direct Link Like When Clicked It Will Download Without Landing Any Page
- Curl URL syntax for uploading files
- Send a json command to an app at a known port/address?
- How do I resolve this error ? "ERR_TOO_MANY_REDIRECTS"
- I'm using the googlesearch library in Colab, but I can't import my websites to a list. How can I do that?
- Sharepoint document library URL Rewrite
- Apache2 redirection results in wrong URL
- Vue / Vitest : issues in snapshots with dynamic import assets URL
- How to redirect to the landing page when the domain name is searched?
- find out filename from URL
- How do I ping a website to see if its valid before entering?
- Unable to download CSV file from web URL with runtime using python
Related Questions in SITEMAP
- Is there a possibility to generate sitemap.xml in SPA React project?
- Generate a video sitemap for Next.js
- How to deprecate a sitemap.xml file?
- Permission denied to write on live server
- Next.js 14 Sitemap generation with multilanguage
- Why is it not working to create an image section in my sitemap?
- Dynamically Generating Sitemaps for Each Domain with Next.js 13.5 and i18next
- Notify Google that my sitemap has been updated
- Django sitemap.xml shows plain text
- Sitemap URL not defined in robots.txt Websiteplanet
- @nuxtjs/sitemap error says: Cannot find package 'nitropack'
- How to submit sitemaps for large number of subdomains and which gets created for every user registration to google search console?
- Why doesn't next-sitemap work properly with next-auth?
- Why does Google Search Console dislike my C# ASP.NET Core MVC routes?
- How can I make a dynamic sitemap in Nextjs 14?
Related Questions in ASP.NET-4.5
- Authorization in .Net 4.5 C# Api
- VS 2019 install hangs when installing ASP.Net 4.5
- Accessing Active Directory username when using Certification Authentication
- How to increase the timeout of an Asp.net application MVC 4.5 framework
- HTTP Error 415 Unsupported media type on a specific server - How to find the issue?
- How to load file from S3 with Presigned URL
- ASP.NET: Response.Redirect() with root-relative URL (tilde, ~) repeats subfolder in path (after migrating from target framework 3.5 to 4.5)
- OnRowCommand is triggered, OnRowEditing not firing on my gridview
- Function mapping in Entity framework
- Not getting past GetAwaiter().GetResult()
- Where should I define a MembershipValidatePasswordEventHandler in a legacy ASP.NET Website Project?
- Do the applications developed with Asp.net 1.1 run on new browsers?
- Make Synchronous database operation asynchronous
- Setting innerText of href element in c# using content starts with ~/
- Microsoft identity platform Asp.Net c# and Visual Studio
Related Questions in SECURITY-TRIMMING
- Recognizing ASP.NET MVC security trimming request in AuthorizeAttribute override
- Looking for elegant and secure way for security-trimming "edit" views
- ASP.NET Core MVC Navigation Security Trimming
- SecurityTrimming does not hide unauthroized menus
- MVCSiteMapProvider: Using security trimming with ouput cache returns empty sitemap
- File managment on Azure blob storage
- Sharepoint 2013 search result Security trimminng
- How to change the URL that securitytrimming will redirect the user to?
- Security trimming in search web service
- Menu link security trimming
- How to use Custom SiteMapProvider in ASP NET MVC?
- Trimming whitespace from usernames and passwords
- roles based menu does not work, what am I doing wrong?
- Custom security trimming SharePoint FAST Search results
- SharePoint 2010: Trimming page content based on group
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?
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)
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)