Change logic of checking the direct links
Merge pull request #1400 from mfalesni/blank-screen-bug-change

Change logic of checking the direct links