Page Publishing is broken for logged in users

When you publish a page, it works fine, but then go to that page.

Here, it looks like it’s combined many themes, the sidebar is missing, icons are gone, there are no stats, no pfp, etc.

When you’re logged out, it’s not as broken, but it’s still missing icons, the sidebar, etc.

1 Like

On mobile it looks like this while logged in:

Yeah, I tried the Default theme and the bugs went away. Weird, I have no code to add the Air theme background, or the Inter font.

1 Like

FWIW I’ve just tried publishing a page while applying the Air Theme and it seems to be working fine for me. Both the sidebar and summary, etc show up fine on the original topic.

2 Likes

Published page has a different style. I think this is designed to minimalistic and it a kind of reader view. Sidebar is not available (yet) on published page and the header is also limited.

Here is the stylesheet for published page:

Discourse Air theme adds a few modification to published page to fit to the theme but you can override these with a theme component if it is not fit with your customizations.

2 Likes

Found my issue.

In my theme, a really old piece of code adds the circle like the Air theme.

.published-page {
  &::before {
    background: linear-gradient(
      90deg,
      var(--tertiary-hover) 0%,
      var(--tertiary) 100%
    );
    clip-path: ellipse(148% 70% at 91% -14%);
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: fixed;
    z-index: 0;
  }
  .background-container {
    display: none;
  }
}

I’ll remove it.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.