URL Routing

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 年 前
Hi Team,

Hope you are well.

How URL Routing works in nopCommerce.

Please help.

Thanks!
2 年 前
Hello.
It is simple ASP.NET routing.
Implement IRouteProvider.cs interface to register your own routes.

See example in Nop.Web/Infrastructure/RouteProvider.cs
2 年 前
Ok Thanks!

What is the use of 'UrlRecord' table in Database?
2 年 前
It stores the URL Slug or SEO Friendly names for Entities for each language

build-your-own-computer for entity "Product" is converted to
https://demo.nopcommerce.com/build-your-own-computer
to display the product page

See https://admin-demo.nopcommerce.com/Admin/Common/SeNames
2 年 前
ok Thanks!

And How that is used in code to read and show Slug from UrlReocrd?
2 年 前
Have a look at src\Libraries\Nop.Services\Seo\UrlRecordService.cs
2 年 前
Hi,

Hope you are well.

Please help in understanding - While changing the Language.How the URL is changing.

Thanks!
2 年 前
Hi Team,

Hope you are well.

While running nopCommerce first time on URL it is attaching "/en/".
Who this is attaching in code for the first time.

Please help.

Thanks!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.