+7
−0
Loading
The staticpage and content plugins set seo.canonicalUrl as getsiteurl() + buildurl(...). With URL "https://tuxist.de/blog" and PREFIX "/blog" that gave https://tuxist.de/blog/blog/staticpage/x (404) on every page; theme.cpp's own fix only covered the fallback og:url. Add blogi::joinSiteUrl() / Config::absoluteurl(path), which drops the site URL's path when the prefixed path already starts with it, so both config styles (URL with or without the mount path) give the right URL. Use it for canonical links, og:url/og:image, sitemap and llms.txt links, the old-numeric-id 301 redirect, comment/contact verify mails, the default plugin sitemap entry and the survey OAuth redirect URI. Adds tests/siteurl_test. Co-Authored-By:Claude Opus 5.5 <noreply@anthropic.com>