Impossible to set canonical url for dynamic and static collection page?

WeWeb doesn’t seem to allow dynamic variables in the tag directly in custom code. A workaround could be using JavaScript to grab the current URL and inject it dynamically, but that’s not ideal for SEO. For static collection pages, you need to manually set canonicals for each one.