Exporting site with subdomain URI

Created on 6 October 2023, 9 months ago
Updated 9 October 2023, 9 months ago

I have tried looking through the documentation, but I'm coming up empty on this. I am trying to use drush tome:static to export a site to deploy to CloudFlare Pages. The internal domains provided by Cloudflare look like https://foo-bar.pages.dev/. So I am running drush tome:static --uri=https://foo-bar.pages.dev

When I look at the output HTML (for example, index.html), I can see that
has the proper URL, but all of the links in the navigation are prepended with /foo-bar/ (for example, /foo-bar/about, /foo-bar/contact, etc) when they should just be /about and /contact)

It seems like tome is taking the foo-bar portion of the URI and treating it like a separate directory, which it is not. This is resulting in HTML output with many broken links and images.

Hope this makes sense!

πŸ’¬ Support request
Status

Active

Version

1.11

Component

Tome Static

Created by

πŸ‡ΊπŸ‡ΈUnited States srdtwc Skokie, IL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @srdtwc
  • πŸ‡ΊπŸ‡ΈUnited States srdtwc Skokie, IL

    I was able to work around this issue by running

    drush tome:static --uri=https://pages.dev
    

    (without the subdomain prefix) and then running a search/replace in the output to replace https://pages.dev with https://foo-bar.pages.dev

    That shouldn't be necessary, so this feels like a bug to me... But I could be doing something wrong.

    Thanks

Production build 0.69.0 2024