Fix tree link on layer list for layers with no subdirectory
Fix tree link on layer list for layers with no subdirectory

We always need to replace %path% in the URL, not just when there is a
non-blank path to replace it with.

Signed-off-by: Paul Eggleton <737d4dae46a541673d7bf4e0d5b32714b16528d8@linux.intel.com>

bartosh/layerindex-web,bartosh/layerindex-web,bartosh/layerindex-web