Skip to main content

Deep links

A deep link opens the sportsbook already standing somewhere: on the live board, inside one sport, on one league's odds, on one match, or on a view you composed.

The whole contract is the page's own address. There is nothing to register and nothing to build — you write the address and it works. It answers in both places the sportsbook runs:

  • inside the embedded widget, as query parameters on the address of the casino page the widget sits on — the path there is the casino's, see The web component;
  • on a white-label page we host, where the same parameters answer and the view is also a word of the path — see On a page we host.

The sportsbook reads them on load and keeps writing them as the player moves, so any screen can be copied out of the address bar, bookmarked, shared, and walked back out of with the Back button. Everything else in the query string survives untouched: your utm_*, your session id, anything of yours.

An address beats memory — it is the only source of the screen. Wherever a player was last, the link decides, and it paints on the first frame, with no flash of the front page in between. An address that names nothing opens the home view, not the screen they left.

The view​

One parameter names which screen is on: section.

AddressOpens
(no parameter)Sports betting (home). The default writes nothing, so an embed nobody touched leaves the address exactly as it was.
?section=deportesThe same home view, named out loud.
?section=en-vivoLive.
?section=futurosFutures.
?section=favoritosFavourites.
?section=promocion-de-veranoA view you composed, by its own address.

The four sportsbook slugs — deportes, en-vivo, futuros, favoritos — are frozen. They are a public contract from the day the first link was published, so they are never re-spelled, only added to. Each view is also spelled in its reader's language: an English reader pressing Live lands on ?section=live, a Portuguese one on ?section=ao-vivo, a Spanish one on ?section=en-vivo. Every spelling opens the same view whoever reads it, so a link copied in one language works in all of them — and the English ones double as the ids to use when wiring a button from your own code: ?section=sports, ?section=live, ?section=futures, ?section=favourites.

The value is trimmed and lower-cased before it is read, so ?section=EN-VIVO arrives at the live board.

Views you compose have addresses of their own, derived from their names — one per language you named the view in, and the default name's address for every language you did not — and printed under each name in the Views list. How they are created, renamed and what a rename costs is in Navigation. Two rules matter out here: a view of your own only exists on a page composed and published in the editor — on a page still rendering its template, ?section= names one of the four and nothing else — and renaming a view in a language moves that language's address with no alias behind it, which kills every link in that language you already printed.

On a page we host, the view is a word of the path​

A page on its own domain owns its whole address, so the view leaves the query and becomes the word after the page's path. What narrows a view stays in the query.

AddressOpens
/Sports betting (home).
/en-vivoLive.
/promocion-de-veranoA view you composed.
/en-vivo?deporte=baseballLive, on one sport: the trail below stays a parameter.

On a page that published a landing, the landing is the root and the sportsbook is served at /deportes. Each keeps its views under its own path: /juegos is a view of the landing, /deportes/en-vivo a view of the sportsbook.

Every spelling of a view works here as it does in the parameter: /live and /ao-vivo open the live board too.

?section= still opens the same view on a hosted page. The address is sent on to the path that names the view, with the rest of the query kept: /?section=en-vivo&utm_source=newsletter arrives at /en-vivo?utm_source=newsletter. Nothing printed before has to be reissued. The sportsbook itself writes the path form there as the player moves, so that is the form to copy out of the address bar.

Inside the embed nothing changes: the path belongs to the casino, and the view travels in the parameter.

The view parameter used to be vista. It is section now. The rename came with a bridge that does not expire: the sportsbook reads vista forever and never writes it.

So a link printed on a campaign, pasted into a casino's button or bookmarked by a player before the rename opens exactly the screen it always opened. Nothing has to be reissued and nothing has to be redirected. The first time that player presses one of the sportsbook's own tabs, the address rewrites itself to ?section= and the old name is dropped on the way past — nobody is left holding an address that says two things at once.

Write ?section= in everything you build from today. vista is read, not offered.

Which view an address names
  1. 1?section=<name>The parameter the embed writes. A blank value — ?section= — counts as absent, not as an answer.
  2. 2?vista=<name>The old name. Read forever, written never. An address carrying both resolves by section.
  3. 3/<name>, on a page we hostThe word after the page's path, which is what the sportsbook writes there. Consulted only when no parameter names a view.
  4. 4?envivo=1 · ?futuros=1 · ?favoritos=1Older flags, still read. Consulted only when nothing above names a view. A bare or blank flag is not a value.
  5. 5No parameter at allThe home view, Sports betting (home).
Read top down. The first rung carrying a value answers, and the rest are never consulted.

The catalogue trail​

Four more parameters name a place in the catalogue, level by level. Each is optional, and you use as many levels as you need.

ParameterCarriesExample
deporteThe sport, by its catalogue slug — lower case, accent-free.baseball
paisThe region, by the provider's location id. No screen reads it: an address can carry it, and it changes nothing.166
ligaThe competition, by the provider's league id.16566
eventoOne match, by its fixture id.10442883
AddressOpens
?deporte=baseballThe whole sport: its listings, its leagues, its live matches.
?deporte=baseball&liga=16566That league's odds board.
?evento=10442883That match's markets page.

A league is honoured only beside its sport. ?liga=16566 on its own names nothing, because there is nothing in the address to look the league's sport up with — send deporte with it.

A match beats everything else in the address, the view included: an address naming a fixture opens that fixture. Below that, the view decides the screen — ?section=en-vivo draws the live board whatever sport the address also names — and the sport and league are drawn on the home view.

Where the ids come from: navigate the sportsbook to the place you want to link to and copy the address bar. The sportsbook writes these parameters as the player moves, so the address you are looking at is the deep link.

Combining them​

https://casino.example.com/?section=en-vivo&utm_source=newsletter
https://casino.example.com/?deporte=baseball&liga=16566
https://casino.example.com/?section=mlb&deporte=baseball&liga=16566

The same three on a page we host, where the view is a word of the path:

https://page.example.com/en-vivo?utm_source=newsletter
https://page.example.com/?deporte=baseball&liga=16566
https://page.example.com/mlb?deporte=baseball&liga=16566

The last one is the shape a view fixed to a sport is born with: when you fix a view to a sport, a country or a league, the menu entry the editor mints for it carries that trail beside the view's own name, so the entry opens the view on exactly the screen you chose.

What a malformed address does​

Every mistake here lands the player on a working screen that tells them it has nothing — with one exception, and that one is the reason to check an address before you print it.

AddressWhat happens
?section= with nothing after itRead as absent. If ?vista= is beside it, that answers; otherwise the home view.
?section=, or a path on a page we host, naming a view nothing declaresThe exception. A 404 on a page we host, the front page inside the embed. See the two columns below.
?liga=16566 with no ?deporte=Ignored.
?deporte= or ?liga= naming something the catalogue does not carryThe board draws and lists nothing: No upcoming matches.
?pais=, whatever it namesNothing changes: no screen reads it.
?evento= naming no fixtureThe match card says Match not found.
?section=futuros&vista=en-vivosection wins: Futures.
?envivo or ?envivo=Not a value. Ignored.
The same unrecognised view name, two answers
A page we host
  • An unrecognised name answers Page not found, in the path or in ?section=
  • A typo in a campaign is a dead link, not a soft landing
  • The view is a word of the path — /promocion-de-verano — and ?section= is sent on to it
  • A page still rendering its template knows the four sportsbook views; a stray ?section= opens its front page
The embedded widget
  • An unrecognised ?section= opens the front page
  • A parameter left behind by the casino's own router cannot leave the player without a sportsbook
  • Only the query form works — the path belongs to the casino
  • Your own views resolve here too, on a published composition
The difference is whose address it is. On a page we host the address is ours; inside the embed it is the casino's.

Read the left column as the rule for anything you print. A view name in a campaign has to be one that exists on the day the campaign runs.

A deep link is also how you build a tab that opens one sport. In the Tabs panel, Add to the menu → Your own link, then Destination → a web address, and paste the link.

Paste it whole. The full https://casino.example.com/?deporte=baseball&liga=16566 your address bar shows you is recognised, and so is the bare ?deporte=baseball&liga=16566. Both stay inside the page instead of reloading it.

A tab knows it is the current one by subset: every parameter the tab names has to be named the same way in the player's address, and anything extra in that address is none of the tab's business. Three things follow.

  • A tab pointing at ?deporte=baseball stays lit while the player drills into a baseball league, because the address only gains ?liga=.
  • Your own utm_source never unlights a tab, which matters in the embed, where the address belongs to the casino.
  • Between two tabs that both match, the one naming more parameters is the current one. Exactly one tab is ever lit.

To point a tab at a view of this page, pick the view from the list instead of typing its address — see Navigation.

Inside the embed, only the query is ours​

The path belongs to the casino. A widget embedded at /sportsbook writes the view onto that path, not onto the root:

https://casino.example.com/sportsbook?section=mlb

That is correct and not a bug. An address composed over / would send a player who reloads to the casino's home page, with no sportsbook on it.

Two things to check on your side​

  • Your router. The widget writes into the address of the page it is embedded in, and section is a common English word — commoner than vista was, which is a cost the rename carried. If your own router already reads section, deporte, pais, liga or evento, tell us before you embed.
  • Reloads. The widget navigates with pushState, so no page load happens when the player moves. If they reload, or open your link in a new tab, your own server answers the path half of the address: serve the page that embeds the widget there and the parameters do the rest.

Next: Versions and publishing — how an address reaches a player.