Might be best to give them distinct urls, so rather than variant=1 and
varient=2 you have xxx/most-popular and xxx/latest



Sent from my iPhone

On 7 May 2013, at 18:37, Darren Hurley <notifications@github.com> wrote:

In core-navigation/app/controllers/MoreStoriesController.scala:

> +                  }
> +                  case Right(notFound) => JsonNotFound()
> +                }
> +              }
> +            }
> +          }
> +        }
> +      }
> +    }
> +  }
> +
> +  private def getMoreStories(edition: Edition, path: String)(implicit request: RequestHeader): Future[Either[Seq[Content],Result]] = {
> +    request.getQueryString("variant").map {
> +      case "2" => frontTrails(edition, path)
> +      case _ => mostViewed(edition, path)
> +    } getOrElse(mostViewed(edition, path))

Did think about putting the endpoint next to the respective page, but we
want to prototype different varieties (personalised, etc), so though it
best to have its own endpoint

Agreed with different routing, but how do you route based on query string
parameter?

—
Reply to this email directly or view it on
GitHub<https://github.com/guardian/frontend/pull/797/files#r4111399>
.

Please consider the environment before printing this email.
------------------------------------------------------------------
Visit guardian.co.uk - website of the year
 
www.guardian.co.uk    www.observer.co.uk     www.guardiannews.com 
 
On your mobile, visit m.guardian.co.uk or download the Guardian
iPhone app www.guardian.co.uk/iphone and iPad edition www.guardian.co.uk/iPad 
 
Save up to 32% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access. 
Visit guardian.co.uk/subscribe
 
---------------------------------------------------------------------
This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.
 
Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.
 
Guardian News & Media Limited
 
A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP
 
Registered in England Number 908396