deconst/presenter

Generate root-relative URLs for "to" directives on the same domain

Closed this issue · 0 comments

Generating absolute URLs causes problems when you're previewing content locally with deconst/integrated setups. Detect when the presented URL is part of the same domain (which should be the common case) and omit the hostname, scheme and so on when appropriate.