Using URL templates with the Website Link App

URL templates are useful when you want to render different pages depending on the player where the app is published and when the URL contains player-specific information, such as tags or custom attributes.

You can use the following parameters:

  • player.id: Unique identifier for the current player
  • player.name: Name of the current player
  • player.version: App version
  • player.tags: Associated tags
  • player.attrs: Custom attributes 

Here's a practical example to illustrate how URL templates work. Consider a base URL structure like https://www.my-site.com?name={{ player.name }}. The app is published on two different players, one named "A" and another named “B”. This results in the following URLs on each player.

Player A URL: https://www.my-site.com?name=A

Player B URL: https://www.my-site.com?name=B

The player will render the same content as any web browser, regardless of the status code.