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 606127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:13:16+00:00 2026-05-13T17:13:16+00:00

Should all routes in ASP.net MVC follow a Only slashes, no QueryString philosophy? I’m

  • 0

Should all routes in ASP.net MVC follow a “Only slashes, no QueryString” philosophy?

I’m working on a Wiki software, so I have routes like

/{pageTitle}
/{pageTitle/Edit
/{pageTitle/History

etc. for all actions, but what if I want to control the behavior of an Action? Is something like

/{pageTitle}?noredirect=true

okay or considered bad practice? If the latter, is there a better option? Should I create a separate route

/{pageTitle}/NoRedirect

instead?

I think it’s clean, but then again I’ve never written a complicated MVC application that would need passing options to the action before 🙂

  • 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-05-13T17:13:17+00:00Added an answer on May 13, 2026 at 5:13 pm

    I believe there’s no definite answer to this.

    But to me, it feels more natural to just have controller & action related parts in the left part of the URL and have the “optional” parameters in the QueryString.

    While it’s clear that ;

    • /{pageTitle} will show the article ,
    • /{pageTitle}/Edit will edit the artice,
    • /{pageTitle}/History will show the history of that artice

    /{pageTitle}/NoRedirect doesn’t really ring a bell.
    But it’s a bit more obvious that /{pageTitle}?noredirect=true modifies the behaviour of the action.

    So I would go with /{pageTitle}?noredirect=true in your case.

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

Sidebar

Related Questions

I created a route in ASP.net MVC application that looks like this: routes.MapRoute( ArticleRoute,
I have an ASP.Net MVC 3 application. With 2 Areas: Auth - handles all
As Jeff Atwood asked : "What’s your logging philosophy? Should all code be littered
In my asp.net mvc 2 app, I'm wondering about the best way to implement
By ASP.NET MVC plugin architecture, Plug-in architecture for ASP.NET MVC I have separated DLL(plugin)
I have a route defined last in my ASP.Net MVC 2 app that will
Can ASP.Net routing (not MVC) be used to serve static files? Say I want
I have a question that has pretty much been asked here: asp.net mvc Html.ActionLink()
I have an ASP.NET MVC 2 application with a custom StructureMap controller factory to
ASP.NET MVC app, close to completion, then it was decided that it needed a

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.