? No Code Attached Yet J4 Issue
avatar Puneet-Jain-18
Puneet-Jain-18
8 Mar 2019

Steps to reproduce the issue

go to administrator
Create new article=>save it =>click on preview

Expected result

article is previewed

Actual result

screenshot 11

Additional comments

previewing is working correctly for published articles

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar Puneet-Jain-18 Puneet-Jain-18 - open - 8 Mar 2019
avatar joomla-cms-bot joomla-cms-bot - change - 8 Mar 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Mar 2019
avatar ReLater
ReLater - comment - 8 Mar 2019

In title you say "unpublished article", in additional comments "published article".
Could you please show other settings, too. Access level and so on.

avatar Puneet-Jain-18
Puneet-Jain-18 - comment - 8 Mar 2019

PS: I said it was working correctly for published articles

Here is screeshot for problematic unpublished article
screenshot 12

avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Mar 2019
Status New Information Required
avatar ggppdk
ggppdk - comment - 8 Mar 2019

So what is the Expected result if you are not logged ?

  • to be redirected to login page ?

And then
if are already logged or you have logged after redirection with an account that cannot preview the content

  • then a more helpful message should appear like ?

"You cannot preview this item, please login with a more privileged account"

avatar Puneet-Jain-18
Puneet-Jain-18 - comment - 9 Mar 2019

I think user would not be able to visit this page if he is not logged in with required privileges

avatar simbus82
simbus82 - comment - 9 Mar 2019

@ggppdk Previewing article must work with or without frontend login, if an user is working in backend. And must work with an published or an unpublished article. There is not much to interpreting...
Otherwise it's not a preview ... That's how it works in the world of content creation.

Expected result
article is previewed

avatar ggppdk
ggppdk - comment - 9 Mar 2019

@simbus82

i understand your argument about UX , yes it would be very nice

as long as it is not an ugly hack with security concerns,
that also cares to preview with the desired access level

i mean the preview button is a little misleading, which access level do you want to preview ?
public ?
registered ?
other ?

but ok, i understand that most common case of preview is "public" access level ...

  • so you would want to preview unpublished content while only having access level public and while you are not logged, and while executing frontend plugins , etc, ok, if this can be done without being hack
  • or you get auto-login as the current backend user but your access levels are reduced to public ?
  • or you get auto-login as the current backend user but your access levels do not change ? then there is the case that the backend user is not allowed "site login" but lets handle this case by just forcing a frontend login screen
  • other case ? e.g. multiple preview buttons with a drop down , "preview as registered" , "preview as public" ?

with above i mean

  • first we need to decide what the preview "thing" will be
    and then implement

we had this since 9 years ago, and last 7 years we force a login
but i would love a core paradigm / implementation
all of 3rd party developers will like and use it too

avatar ggppdk
ggppdk - comment - 9 Mar 2019

I forgot to say a suggestion
maybe auto create temporary "access" coupons that are added to the URL to limit viewing to a specific content with specific access level(s) and for specific short time ...

but the above will need some implementation effort

simplest solution is to auto login backend current user to frontend

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Mar 2019
Status Information Required Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Mar 2019
Category com_content
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 4 Apr 2019
avatar jwaisner jwaisner - change - 24 Mar 2020
Status Discussion Information Required
Build staging 4.0-dev
avatar jwaisner
jwaisner - comment - 24 Mar 2020

@puneet0191 Please retry with latest J4 build since there has been a lot of work since this issue was reported and let us know the result.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24132.

avatar brianteeman
brianteeman - comment - 24 Mar 2020

It still doesnt work

avatar jwaisner jwaisner - change - 24 Mar 2020
Status Information Required Confirmed
avatar adj9
adj9 - comment - 5 Dec 2020

Confirmed with have today's Nightly Builds.

Schermata 2020-12-05 alle 13 02 43

avatar HLeithner
HLeithner - comment - 5 Dec 2020

@adj9 what's the url?

avatar adj9
adj9 - comment - 5 Dec 2020

@HLeithner
is in the backend. The preview of an article that is not published.

avatar alikon alikon - close - 6 Sep 2021
avatar alikon
alikon - comment - 6 Sep 2021

please test #35488

avatar alikon alikon - change - 6 Sep 2021
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2021-09-06 18:15:19
Closed_By alikon
Labels Added: No Code Attached Yet
Removed: ?
avatar alikon alikon - change - 6 Sep 2021
Status Closed New
Closed_Date 2021-09-06 18:15:19
Closed_By alikon
avatar alikon alikon - reopen - 6 Sep 2021
avatar alikon
alikon - comment - 6 Sep 2021

as #35488 won the prize of the most shit pr's let's reopen this

avatar stefanschulz
stefanschulz - comment - 25 Jan 2023

Hi,
This is still not working in the latest release 4.2.6.
There is no point in having a preview, if the article can only be seen when already published.
For Joomla!3 there was a plugin by Regular Labs (Better Preview). Maybe it does provide some idea on how to solve this issue.
Cheers,
Stefan


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24132.

avatar HLeithner
HLeithner - comment - 25 Jan 2023

for the moment you have to be logged in also in the frontend or have shared sessions activated.

avatar stefanschulz
stefanschulz - comment - 25 Jan 2023

Yes. I activated shared sessions for that purpose, which I see as an acceptable workaround. Unfortunately, it sets the whole frontend in "preview" mode, so it is a bit difficult to see the real website (or requires to open a second (or anonymous) browser.

avatar HLeithner
HLeithner - comment - 26 Jan 2023

that's actually true, I suspect you also have frontend editing active? if you don'T use it you can disable it in the system configuration. then you only see additional content but the website should look the same.

avatar stefanschulz
stefanschulz - comment - 26 Jan 2023

I don't need frontend editing. And I did not find any option to turn it off.

avatar HLeithner
HLeithner - comment - 26 Jan 2023

image

avatar stefanschulz
stefanschulz - comment - 26 Jan 2023

This is already set to "Keine". Seems not to effect article editing.

avatar HLeithner
HLeithner - comment - 26 Jan 2023

ok then maybe the template you are using does something special

avatar stefanschulz
stefanschulz - comment - 26 Jan 2023

Thanks. I'll check for that.

avatar Hackwar Hackwar - change - 19 Feb 2023
Labels Added: ?
avatar Hackwar Hackwar - labeled - 19 Feb 2023
avatar dautrich
dautrich - comment - 12 Jul 2023

I ran into the same problem and opened issue #41130. Let me cite one of my comments from a user's point of view:

Look at the use case: The user is in the backend and has sufficient rights to edit an article. He saves the article and now wants to see the result, because there might be some need for improvement. To be able to preview the article in the backend is a big enhancement over J3. So give him/her the preview regardless of other restrictions like missing user rights or not reached publishing date or expired publishing date! And without the need to login first to preview the article.

I understand that probable security issues must be solved, but the issue should be solved as well!

avatar brianteeman
brianteeman - comment - 12 Jul 2023

Enable shared sessions in global configuration. Problem solved

avatar kkbiswal
kkbiswal - comment - 10 Apr 2024

I have trie with this option still I am getting 404 for an unpublished article on joomla 4.3 .
Is there any other solution present??


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24132.

Add a Comment

Login with GitHub to post a comment