Long Url for custom controller taking too much time to load, Nopcommerce 4.5

1 mese tempo fa
Please visit below link for complete details:

https://www.nopcommerce.com/en/boards/topic/98754/long-url-for-custom-controller-taking-too-much-time-to-load-nopcommerce-45
1 mese tempo fa
https://v45demo.selectsystems.com.au/level-control-switch-windscreen-washer-tank-level-control-switch-windscreen-washer-tank-level-control-switch-windscreen-washer-tank-repair-kit-wheel-sensor-tyre-pressure-monitoring-system
No problem with this link

I think I am reading you have made customisations ?
Have you checked in the debugger where the problem might be ?

Do you have any other non standard pluings installed ?

1 mese tempo fa
I don't have problem with those links as well they work fine. The problem is when the links are :

https://www.abc.com/XXXXX/longlinkhere-after32-charactersitsslow-after40neverloads


I add redirect 301 to change those long to small but that did not work because it never enters the middleware, so finally sorted it by using IIS URL Rewrite module and it redirects them to shorter URLS.
1 mese tempo fa
Like this one
https://v45demo.selectsystems.com.au/accommodation/longlinkhere-after32-charactersitsslow-after40neverloads-longlinkhere-after32-charactersitsslow-after40neverloads

Dont know what you are doing differently ?
1 mese tempo fa
Does the rules below have anything to do with this, but if they did it would act on all URL not just long ones?

    

endpointRouteBuilder.MapControllerRoute(
       name: "CustomCategoryRoute",
       pattern: $"{lang}/carparts/{{categorySlug}}/{{make}}/{{model}}/{{vehicle}}/{{makeID}}-{{modelID}}-{{ktype}}",
       defaults: new { controller = "Catalog", action = "Category"}
   );

endpointRouteBuilder.MapControllerRoute(
    name: "SpecificCategoriesRoute",
    pattern: $"{lang}/carparts/{{categorySlug}}",
    defaults: new { controller = "Catalog", action = "Category" },
    constraints: new { categorySlug = endpointRouteBuilder.ServiceProvider.GetService<CategoryConstraint>() } // Custom constraint for allowed categories
);

endpointRouteBuilder.MapControllerRoute(name: "MakeModelVariant",
     pattern: $"{lang}/carparts/{{term}}/{{make}}/{{model}}/{{vehicle}}",
     defaults: new { controller = "MakeModelVariant", action = "Index", term = "", make = "", model = "", vehicle = "" });
1 mese tempo fa
I am using a simpler form maybe it is the constraints option you are using ?

            urlPattern = "accommodation" + "/{SeName}";
            endpointRouteBuilder.MapControllerRoute("Nop.Plugin.Apollo.Front.Accommodation", urlPattern,
                new { controller = "Apollo", action = "AccommodationFront" });

Do you restart the app after make changes to the MapControllerRoute parameters ?
1 mese tempo fa
It acts same on local host and live and have restarted app many times. I trimmed down the urls to max 32 characters after /carparts/ and every url works instantly. Strange but that is how it is.