Double Unique SEO code when SEO friendy Urls enable (3.20)

6 years ago
When is enable the SEO friendly URLs then create double Unique SEO code like http://www.mystore.com/en/en/
6 years ago
Everything works fine. I cannot reproduce it

What IIS version are you using? Do you use virtual category (IIS)?
6 years ago
ASP.NET IIS 4.0.30319.18056  Visual Studio Server IIS . This begin after you upgrade the libraries if this help.
6 years ago
xenophon wrote:
...after you upgrade the libraries...

What exactly do you mean? What libraries? When?
6 years ago
Ι think from updating ASP.NET MVC 4 to ASP.NET MVC 5 and after but i don't remember in which commit begin
I try to download the previous commit to find when that began
Commit 3f85dfd8a1bc. its ok
Commit 462bb8fbf99e its  the last that its ok
Commit 5303c5b3cc06 its have problem
commit 7b87314689ea its have problem
Commit 6ba629c7186b its have problem
Is this help https://github.com/mccalltd/AttributeRouting/issues/272
6 years ago
I am having the same issue with a fresh install of 3.20 with the sample database. Any idea where the problem could be coming from?
6 years ago
I can't be the only having this issue. I tried two separate development environments with the same results.

To produce this issue,
1. I download the source code version of nopCommerce 3.20 and install it using VS 2012
2. Log into Admin and create a language
3. Enable "SEO friendly URLs with multiple languages enabled"
4. Restart the application
5. Open the public store home page and you will see http://localhost:15536/en/ in the URL.
6. Click on any link and the URL will duplicate the locale http://localhost:15536/en/en/....

If believe the issue is coming from the GetVirtualPath method under the Nop.Web.Framework.Localization.LocalizedRoute namespace but the code appears to be the same as version 3.10.

Here is my System Info if anyone can help.  Thanks in advance!

nopCommerce version: 3.20
Operating system: Microsoft Windows NT 6.1.7600.0
ASP.NET info: v4.0.30319
Is full trust level: True
Server time zone: Eastern Standard Time
Server local time:
Tuesday, December 10, 2013 11:52:19 AM
Greenwich Mean Time (GMT/UTC):
Tuesday, December 10, 2013 4:52:19 PM
HTTP_HOST: localhost:15536

Loaded assemblies:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Web.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Antlr3.Runtime, Version=3.5.0.2, Culture=neutral, PublicKeyToken=eb42632606e9261f
Autofac, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da
Autofac.Integration.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da
AutoMapper, Version=3.1.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005
AutoMapper.Net4, Version=3.1.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005
EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
EntityFramework.SqlServerCompact, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
EPPlus, Version=3.1.3.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1
FiftyOne.Foundation, Version=2.1.19.4, Culture=neutral, PublicKeyToken=null
FluentValidation, Version=5.0.0.1, Culture=neutral, PublicKeyToken=null
FluentValidation.Mvc, Version=5.0.0.1, Culture=neutral, PublicKeyToken=null
itextsharp, Version=5.1.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca
MaxMind.Db, Version=0.2.1.0, Culture=neutral, PublicKeyToken=null
MaxMind.GeoIP2, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null
Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
MiniProfiler, Version=2.1.0.0, Culture=neutral, PublicKeyToken=b44f9351044011a3
Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
Nop.Admin, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null
Nop.Core, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null
Nop.Data, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null
Nop.Services, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null
Nop.Services.XmlSerializers, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null
Nop.Web, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null
Nop.Web.Framework, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null
Recaptcha, Version=1.0.5.0, Culture=neutral, PublicKeyToken=9afc4d65b28c38c2
RestSharp, Version=104.4.0.0, Culture=neutral, PublicKeyToken=null
System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
System.Net.Http.Extensions, Version=2.2.18.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Net.Http.Formatting, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Net.Http.Primitives, Version=4.2.18.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Http, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Http.WebHost, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Telerik.Web.Mvc, Version=2013.2.611.340, Culture=neutral, PublicKeyToken=29ac1a93ec063d92
WebActivator, Version=1.5.2.0, Culture=neutral, PublicKeyToken=null
WebGrease, Version=1.5.2.14234, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.VisualStudio.Web.PageInspector.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Nop.Plugin.DiscountRules.CustomerRoles, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Tax.FixedRate, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Tax.CountryStateZip, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.SMS.Verizon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Shipping.USPS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Shipping.UPS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Shipping.FixedRateShipping, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Shipping.Fedex, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Shipping.CanadaPost, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Shipping.ByWeight, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Shipping.AustraliaPost, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Payments.PurchaseOrder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Payments.PayPalStandard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Widgets.GoogleAnalytics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Payments.PayPalDirect, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Payments.CheckMoneyOrder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Payments.CashOnDelivery, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Payments.AuthorizeNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Misc.WebServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Misc.FacebookShop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Feed.Froogle, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.ExternalAuth.OpenId, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DotNetOpenAuth.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
DotNetOpenAuth.Mvc5, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
DotNetOpenAuth.OpenId, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
DotNetOpenAuth.OpenId.RelyingParty, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
Mono.Math, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
Org.Mentalis.Security.Cryptography, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
Validation, Version=2.0.0.0, Culture=neutral, PublicKeyToken=2fc06f0d701809a7
Nop.Plugin.ExchangeRate.McExchange, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.DiscountRules.HasOneProduct, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.DiscountRules.HasAllProducts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.DiscountRules.HadSpentAmount, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Payments.Manual, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.Widgets.NivoSlider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Nop.Plugin.ExternalAuth.Facebook, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DotNetOpenAuth.AspNet, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
DotNetOpenAuth.OAuth.Consumer, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
DotNetOpenAuth.OAuth, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246
System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
App_global.asax.fczypvi5, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
WebDev.WebHost40, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Dynamic, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
EntityFrameworkDynamicProxies-Nop.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
SMDiagnostics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
App_Web_pf45zjez, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_nry2u2i0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_w0dqlbyc, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_nop.plugin.widgets.nivoslider.views.widgetsnivoslider.publicinfo.cshtml.6e00ac11.xjzkqacm, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_3c1wd0l3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_tyx4nnpv, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_tnkvw3r1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_5csyynaa, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_une44jfj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_bt1er3y1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_j3zzmmnt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_twdz4hux, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_psee4so5, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_u12yeviw, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_im5nyhge, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_cvsyukk3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_rgt0h0ok, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_bskojhbv, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_ct1e3ozn, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_uwevsv0v, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_3s424sug, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
Telerik.Web.Mvc.{Dynamic}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_02seuyak, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_btg313qh, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_monc5vcz, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_hdq0lhyz, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_prc00wyg, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_3kmrdf3a, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
App_Web_ypkjtbxi, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
6 years ago
Same problem for me for any link in the site.
It's also a problem when loading CSS and JS files too, they have the locale defined...

thanks.
6 years ago
Confirmed! I have the same problem too. Any idea on what is going wrong?

Any resolution?
6 years ago
I cannot reproduce this issue. It works fine on localhost and a live server.

What is your Windows version?