Fusio

API / request.getUriFragment

Through this method it is possible to access dynamic parts of the uri. A dynamic part must be defined in the route as :id i.e. /news/:id

Arguments
Name Type Description
name string Uri fragment name
Return
Type Description
string Returns the uri fragment value
Example
var year = request.getUriFragment("year");
if (year === "1986") {
  // url was called with a dynamic fragment
}