BoltTranslate / Translate

Provides translation for contenttypes.
Other
43 stars 38 forks source link

[BUG] adminpanel localeswitcher throws console error as it loads new language #160

Open Puddingboy opened 6 years ago

Puddingboy commented 6 years ago

The moment the localeswitcher changes language, it thows the following error in the browser console:

lib.js?ac345151f5:1 Uncaught Error: Syntax error, unrecognized expression: /bolt/editcontent/pages/33?_locale=nl
    at Function.t.error (lib.js?ac345151f5:1)
    at t.tokenize (lib.js?ac345151f5:1)
    at t.select (lib.js?ac345151f5:1)
    at Function.t [as find] (lib.js?ac345151f5:1)
    at re.fn.init.find (lib.js?ac345151f5:1)
    at new re.fn.init (lib.js?ac345151f5:1)
    at re (lib.js?ac345151f5:1)
    at o.show (lib.js?ac345151f5:37)
    at HTMLAnchorElement.<anonymous> (lib.js?ac345151f5:37)
    at Function.each (lib.js?ac345151f5:1)

The language still changes as expected and the content still loads. I tried it in my pages contenttype, but I am fairly certain it will show on any contenttype.

Details