Proper link handling for sidebar