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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:30:18+00:00 2026-06-13T12:30:18+00:00

I am working with URL routing , and have some issues. I want my

  • 0

I am working with URL routing , and have some issues. I want my url to be like this:

http://www.domain.com/p/myproduct

But I also want to be able to retrieve the ID of the product, without accessing the database. I thought about having a URL like:

http://www.domain.com/p/myproduct/1

But if I could hide the ID it would be better.

So, how do I do it the simplest way?

Currently my Global.asax has the following route:

 routes.MapLocalizedRoute("Product",
                        "p/{productId}/{SeName}",
                        new { controller = "Catalog", action = "Product", SeName = UrlParameter.Optional },
                        new { productId = @"\d+" },
                        new[] { "Nop.Web.Controllers" });
  • 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-13T12:30:19+00:00Added an answer on June 13, 2026 at 12:30 pm

    If all you have is the url then you will have to include the ID there if you want to read it.

    The only way to hide it is if you have the ID coming to you from the post of a form say, assuming they have come from a previous page. Then you could store the selected Id and post to url as part of the request.

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

Sidebar

Related Questions

I have this working query that outputs URL and click counts from database. <?php
I have an MVC app that is working fine, but I now want to
OK I have been working on multiple approaches to this but can't really find
My url routing is working properly inside Areas folder, that means i can go
I have the following in my app/frontend/config/routing.yml : homepage: url: / param: { module:
The website I'm working on has some fairly complicated routing structures and we're experiencing
I am learning .net and building a site that uses url routing. I have
I have an app I'm working on at the moment with some pretty strange
this question is related to routing-filter. I have this in my view: <% form_for
I have set up an ASP.NET MVC project, and everything is working great, but

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.