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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | nodestream_promoredirect_1127408_4.patch | 4.05 KB | pontus_nilsson |
| #2 | nodestream_promoredirect_1127408_2.patch | 2.43 KB | pontus_nilsson |
Comments
Comment #1
fabsor commentedYes, 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.
Comment #2
pontus_nilssonDragging 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.
Comment #3
fabsor commentedI 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.
Comment #4
pontus_nilssonChanging project
Comment #5
pontus_nilssonAlright, 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.
Comment #6
fabsor commentedWe need some tests for this as well.
Comment #7
fabsor commentedI commited this together with a test.