If all what you want to do is to link to individual items from the main 
page, you don't need to use redirect at all. Simply add HTML code to your 
view that would link to /arcticles/show/[id] or /bussiness/show/[id] as 
needed.
<ul>
{{ for article in articles: }}
  {{=LI(A(article.title, _href=URL("articles", "show", article.id)))}
{{ pass }}
</ul>

Then implement show function in both controllers starting with:
def show():
  id = request.args[0]

Reply via email to