Thursday, August 30, 2018

Fixing Network Adapter Issue in Laptops

I woke up this morning to find my laptop was not displaying wifi. Under network adapters, I could not find any wireless adapters.

These are the steps I took to fix it -

0. Before you troubleshoot, try windows troubleshooting.

1. Explore device manager. Scan for hardware changes, reinstall drivers if you wireless network adapter has a yellow question mark on it.

2. Restore computer to an old restore point. (This is in case you have created a restore point)

3. Find updated wireless driver on the support website for your laptop. Try installing that.

4. And this is what fixed it for me - as shown in the screenshot below, go to Control Panel > Uninstall a program. Find your wireless adapter software and hit change. Then do a repair.


5. Last option would be to reset your windows (if you are on Windows 10)

One of the above should hopefully work for you.
Best of luck 

Wednesday, January 24, 2018

Site Icon click to home page of root site - Best method

There are a few alternatives to how one can get SharePoint Icon to always go to the home page of the root site. (By default, it goes to the home page of current site, so it is an issue if you are in a sub-site)

I found the following JavaScript method best and most robust among all the alternatives. The alternatives were updating the link on document load etc. but all those assume that SP will not update that link after your script has run (which it does in Search Center)

var hijackSiteIconLinkClick = function () {
        $('.ms-siteicon-a').click(function (event) {
            event.preventDefault();
            event.stopPropagation();
            window.location.href = window.location.protocol + "//" + window.location.host + _spPageContextInfo.siteServerRelativeUrl;
        });
    };

The above works for every type of subsite as it runs on anchor click event and not when JS thinks that SharePoint page is loaded.

PS: The code above assumes that you have JQuery loaded on the page prior to running this script