- Posts: 59
COMMUNITY FORUM
K2 Unpublished Item acessible through direct URL
- Fábio Jordan
-
Topic Author
- Offline
- Senior Member
Less
More
8 years 8 months ago #157287
by Fábio Jordan
K2 Unpublished Item acessible through direct URL was created 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:
That's it! Any help is appreciated!
Thanks in advance!
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 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?
Please Log in or Create an account to join the conversation.
- Fábio Jordan
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 59
8 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.
I'm using K2 advanced SEF.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 8 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.
I will try to reproduce the issue and let you know.
Please Log in or Create an account to join the conversation.