• Resolved johngeater

    (@johngeater)


    Hi, love the plugin.

    I have one issue and that is with the redirect URL when clicking the site logo. The static version of the site appears to be keeping the existing URL and not updating it.

    All other links on the site and the menu are updating perfectly, it’s just the URL used in an A-tag when converting to a static site.

    I’m using the plugin on a WordPress multi/sub-site in the subdirectory format. Again, everything is fine apart from this one link and it’s not possible to change the theme header since that will update all sub-sites using that theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Team Staatic

    (@staatic)

    Hi John. First of all, thanks for trying Staatic to speed up and secure your WordPress site.

    In order to find out why the site logo link is not replaced, would it be possible to share your diagnostics file with us?

    The diagnostics file can be generated by going to /wp-admin/admin.php?staatic=diagnostics and may be sent to [email protected]. It contains some environment information (feel free to open it in a text editor to verify).

    This might give us some clues and could help us reproduce the issue on our environment.

    Looking forward to your feedback.

    Plugin Author Team Staatic

    (@staatic)

    After some testing, we managed to find the reason for the URL to have not been transformed.

    When WordPress multi-site is setup with the subdirectories method, then network sites have a URL structure like this:

    https://example.com/ – main network site
    https://example.com/subsite/ – first network subsite
    https://example.com/subsite2/ – second network subsite

    In case the first subsite would be published, and it contains a link that references the subsite URL without an ending slash, e.g. https://example.com/subsite, then Staatic is unable to safely replace this URL with the URL of the resulting static site (based on the destination URL). If it would do so, any links from the first subsite referencing the second subsite would break. Therefore the solution in this case is to make sure to link to https://example.com/subsite/ (with an ending slash) instead of https://example.com/subsite.

    We will investigate whether it would be possible to automatically handle this situation in a future release of the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘URL for site Logo not changing’ is closed to new replies.