I've migrated a Statamic V2 site to a new server in a sub-directory. I've updated the the index.php $site_root = '/sub-directory/'; and configured url in locales in site/settings system.yaml url: /sub-directory/. Looks like that cares care of all the css and js urls, but still not able to get correct path for my assets in global variables.

Here's an example of an image I'm calling: {{ assets:logo}}{{ url }}{{ /assets:logo }}. I've followed numerous threads, but still no luck. Any help appreciated.