Website page: from list view to detail view

I’m implementing website pages using custom page in the www folder (not using Web Pages doctype, and not using the templates in doctype).
I have manage to display the list of docs using context.

My issue now :
when click a doc in the list view, how to display the correct data in the detail page?

Example:
If in the list I have:

  • Apple - red - sweet
  • Orange - yellow - sour

When I click the Apple, the detail page should display the Apple data.

Using the doctype template (checking the Has Web View) this is automatically done.

Is there any Frappe-way to do this?
Thank you.