pressbooks / pressbooks-network-catalog

A Pressbooks plugin which provides an improved catalog for the Pressbooks Aldine theme
2 stars 1 forks source link

Network catalog with a specified Parent breaks homepage link to catalog #400

Open tw77 opened 3 months ago

tw77 commented 3 months ago

It's possible to set the Catalog page to have a Parent other than the default (no parent)

Doing so updates the permalink from https://[domain]/catalog to, for example, https://[domain]/home/catalog

However, setting the Catalog page to have a Parent other than the default (no parent) causes the View Complete Catalog button on the network home page to link back to the network home page instead of the catalog.

This bug is affecting one client at the moment.

Steps to replicate

  1. As a network manager or super admin, navigate to Appearance to modify the network home page.
  2. Ensure that the Front Page Catalog is set to be shown on the home page, including at least one selected book.
  3. Navigate back to the admin dashboard and to Pages.
  4. Open the editor for the Catalog page.
  5. Set the Parent of this page to something other than (no parent)
  6. Save changes.
  7. Return to the network home page.
  8. Press the View Complete Catalog button.

We expect to be taken to the catalog but the link just leads to the network home page that we're currently on.

tw77 commented 3 months ago

The workaround of reverting the Catalog to the default https://[domain]/catalog (restoring the working link) has been applied by the client who was affected by this.