Browsing offline site in second context

Hi folks …

I have a website with two contexts.

I set site_status to No on both contexts.

Logged into the Manager, I can still browse the pages of the default context [as expected], but on the second context I cannot, and get redirected to the site_unavailable_message or site_unavailable_page, depending on settings.

Guessing I’m missing a context-specific System Setting or something?

Thanks in advance for any thoughts!

There is a check for the permission view_offline in the code. Maybe that is missing?

Thanks @halftrainedharry … that would be an ACL permission, right?

But are ACL permissions context-specific?

view_offline is enabled for the administrator access policy and as I say - it works for the default context.

I’ve tested this on a second site and the behaviour is the same.

Thanks again.

The cookie (that identifies you as logged in to the manager) is domain specific.

If you use two different domain names for your two contexts, you have to make sure that you are logged in to the manager with the same domain name, to make the preview work.

For example, if the context “web” is mydomain.com and context “web2” is myotherdomain.com, log in to the manager with the URL https://myotherdomain.com/manager to make it work.

1 Like

Thanks @halftrainedharry

That’s it.

Unfortunately, as I’ve discovered recently, logging into the Manager using different domains breaks Modmore licences - so if you use multiple domains to access the Manager, you need a licence for each domain for each Modmore Extra.

To avoid this happening - I redirect Manager requests to the default domain.

So there’s a bit of an impasse!

I’ll try to find some other way around this …

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.