Making navbar paths relative & adding path for directory upload