Duplicate homepages—one isn't editable

(I suspect this problem is coming from one of the Modules we’re using—CleanURL, maybe, or BlockPlus?)

We have a site where we have a page called /home, and in Omeka S’ native settings, it’s set as the homepage. If we view https://...../home, everything looks great; all of the blocks, assets, text, etc. are present, and (most importantly) they have the correct block templates and classes applied.

What’s actually showing up when we go to the homepage (/, or <?php echo $site->url(); ?> in the site files) we’re getting a page where all of the blocks, assets, text, etc. are present, but none of the block templates or classes are applied, so it looks completely wrong. Additionally, in the user bar, there’s no Edit link, and if we go to Pages, the only “Home” page is the editable, correctly-displaying one I described above.

Any idea what could be causing this? I’m sorry we can’t post links to what’s happening; the site is due to launch very soon, but it’s behind a password at the moment.

/home looks like this:

/ looks like this:

If you edit /home, say a small change to the text, does the one at the root also change?

Yup! If I edit /home, the edits show up on the one at the root, too.

OK, so, the root one is probably just a different “view” of the same page then.

I think you’re right that this must be some module’s work. The normal Omeka S homepage system just does a redirect, so when you go to the root of the site you’d get redirected to the selected page.

Cool cool. Since I’m the one designing the page, I think can get really nitpicky with CSS pseudoselectors and get all the styles applied regardless.

If I figure out which module’s causing this weirdness, I’ll report back!

Turns out I misunderstood what’s happening—the block classes are all there. The problem stems from the pageBodyClass; .site-page-* doesn’t have anything appended to it.

  • On /home, as expected, it’s <body class="site-page-home">
  • On /, it’s <body class="site-page">

Just an FYI in case others come looking.

(Edited for accuracy)

4 Likes