Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chinese URL loads correctly in Edge but not other browsers

This page was developed in english which works well in Chrome and Edge browsers. Some community members asked then to translate it to Chinese. Same strategy to create the page was taken with the following resulting page.

The problem is that sometimes the Chinese version page doesn't load. Specially when pasting the URL from somewhere else. In the other hand when navigating from the landing page, blog area, it displays correctly.

How to fix that so that it works for every browser correctly. One interesting thing I just noticed was that sometimes copying the link results in:

https://ethereumclassic.github.io/blog/2017-08-27-社会币的崛起/

Sometimes in:

https://ethereumclassic.github.io/blog/2017-08-27-%E7%A4%BE%E4%BC%9A%E5%B8%81%E7%9A%84%E5%B4%9B%E8%B5%B7/

like image 483
Prophet Daniel Avatar asked Sep 03 '17 13:09

Prophet Daniel


People also ask

Why is my Microsoft Edge Chinese?

Try to change the language of the page like this: Click the gear button on the top-right of the page > select the fifth menu item (Advanced) > choose your desired region/language in the drop-down menu. The page should reload with the new setting.

Is Microsoft Edge blocked in China?

Users have reportedly been impressed with the browser's user interface and, most importantly, the Microsoft website is accessible in mainland China, so no VPN is required to download extensions.

Does Salesforce run on Microsoft Edge?

Salesforce supports the most current stable version of Microsoft Edge. Microsoft Edge is updated through Windows updates, and cannot be updated manually through browser settings.


1 Answers

check the vendor of bundle.js for updates. It appears to be an old version.

function webpackContextResolve(req) {
    return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }());

// error occurs in above.
};

To debug web site load code, first navigate to a blank page (about:blank). Then display and pin the dev tool to the blank page.... select the debug tab of dev tools and choose "Break on All Exceptions" from the dropdown.. (looks like a Stop sign).

Without closing the dev tool, return to the blank page and navigate to the English and then the Chinese sites.... the dev tool will now break on errors. map undefined error To debug browser sniffing issues. (find code that uses browser userAgent sniffing to load different versions of a web site). Use the debug tab of the dev tool to find occurrences of "navigator" or "userAgent". find UserAgent sniffing code

You can test if a web site is incorrectly determining the browser features by changing the userAgent header from the Emulation tab of dev tools. Oddly, changing the UAS in dev tools in IE11 has the same result... suggesting that the enableLazy assignment in bundle.js is the cause. changing the UAS used by a browser with the Emulation tab var enableLazy = typeof document !== 'undefined' && typeof document.documentMode === 'number' || typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\bEdge/\d/.test(navigator.userAgent);

bundle.js seems to be a problem.... check the vendors website for updates to their software....

Also... you have set the page language to en... it should be zh. eg.lang="zn"......

like image 147
Rob Parsons Avatar answered Oct 27 '22 08:10

Rob Parsons