Keyword

K2 Unpublished Item acessible through direct URL

  • Fábio Jordan
  • Fábio Jordan's Avatar Topic Author
  • Offline
  • Senior Member
  • Nothing like a good coffee to make a better web
More
7 years 8 months ago #157287 by Fábio Jordan
Hi there.

I'm having a problem. When I insert an item in my site, and save it as unpublished (so it won't be accessible in the frontend), I still can get to it through the direct URL. Example:

Original URL with index com k2:
www.cafecomfilme.com.br/index.php?option=com_k2&view=item&cid=3037

Using the above URL, the site blocks the attempt to read the item, and redirects to login.

Direct URL (which is indexed in my map and in Google Search):
www.cafecomfilme.com.br/noticias/cafe-com-filme-convida-para-a-pre-estreia-de-star-trek-sem-fronteiras

Using the above URL, the site let the public read the item, and that's a bad thing, because i'm still editing the item and Google starts to rank the item.

Is it only in my website? Any help?

Thanks in advance!

PS.: I already have a solution, but its just a workaround (it's in my template folder), see below:
<?php if($this->item->published==0): ?>
<h2 style="text-align:center;">Ops! Nothing here...</h2>
<?php endif; ?>

<?php if($this->item->published==1): ?>
<!-- Start K2 Item Layout -->
...

That's it! Any help is appreciated!

Thanks in advance!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #157294 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Unpublished Item acessible through direct URL
Are you using sh404sef or K2's advanced SEF settings?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Fábio Jordan
  • Fábio Jordan's Avatar Topic Author
  • Offline
  • Senior Member
  • Nothing like a good coffee to make a better web
More
7 years 8 months ago #157303 by Fábio Jordan
Replied by Fábio Jordan on topic K2 Unpublished Item acessible through direct URL
Hi, Krikor.

I'm using K2 advanced SEF.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #157329 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Unpublished Item acessible through direct URL
Thank you for reporting this Fabio.
I will try to reproduce the issue and let you know.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum