With this setup I’ve noticed that print is used as canonical. ~If I swap HTML and print, I get the expected (non-print) canonical.~ (Edit: swapping breaks other things, see below).
I’m going to fix the Docsy config, but would welcome a reference to the docs stating how the canonical URL is chosen. Thanks!
The order of the output formats in the arrays above is important. The first element will be the primary output format for that page kind, and in most cases that should be html as shown in the default configuration.
It chooses the first output format, if any, that has rel=canonical defined in the output formats definition. I don’t know how your print output format looks like …?
Notice how the alias file has the right canonical, but is refreshes to the print version of the page rather than the canonical version of the page.
I guess that this happens because aliases get processed for the print pages too? Is this expected? Can it be disabled, or does something need to be reconfigured? Thanks!