I'm making a navbar for my blog posts. If a reader arrives at a post from 
the post listing, I want the navigation link to say "Back to the post 
listing" or something like that. If the visitor comes from another source, 
I'd like the link to say "Read other posts like this one."

I know I can test the referrer with request.META.HTTP_REFERER, but I'm 
wondering what to compare this with. I could always hard-code a comparison 
to the post listing URL, but I'd prefer something more durable. What's the 
best way to do this for my mezzanine blog?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to