I suggest that NodeStream implements a 'HTTP redirect' custom page variant for promo nodes, redirecting visitors to the article it promotes (in case they were to type in node/NID for a promo).

A neat complement would be an alternative redirect to the promo edit page if the acting user has permissions to edit the promo.

Comments

fabsor’s picture

Yes, this is a good idea. We currently have a rule that takes us to the topic page that the promo is visible on, but this is probably a better idea.

pontus_nilsson’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new2.43 KB

Dragging up an old issue here but I liked this idea. Maybe there is some other idea regarding this for the Drupal 7 version? Sorry for removing the 6.x tag in that case.

Patch adds node view for ns_ch_web content type with a HTTP redirect. Patch is against ns_ch_web feature.

fabsor’s picture

Status: Needs review » Needs work

I think redirecting to the real article is a great idea for users who don't have access to the promo, but I think it would be a good idea to add what Itangalo suggested in the original issue as well, which is that you arrive at the edit link if you can edit it.

pontus_nilsson’s picture

Project: NodeStream » NodeStream newspaper

Changing project

pontus_nilsson’s picture

Status: Needs work » Needs review
StatusFileSize
new4.05 KB

Alright, patch adds two handlers when trying to access a node of type promo (node/nid). One that redirects users who are able to edit the node to node/nid/edit and another handler that redirects users who are not able to edit the node to the article the node refers to.

fabsor’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

We need some tests for this as well.

fabsor’s picture

Status: Needs work » Fixed

I commited this together with a test.

Automatically closed -- issue fixed for 2 weeks with no activity.