Deep linking

Added · Last updated

… structuring the space has produced a layout, and the actor can reach states that took several moves to assemble: a context switched to, an item opened, a list narrowed, a step in step by step, or a position and scale in a pan and zoom space. That state may need to be handed to another actor in working on the same thing, reopened from a notice in attention and tempo, or returned to after an absence in memory and continuity.

Problem

People can only bookmark, share, and return to an interface state if it has a dedicated URL. Without a URL, users cannot reference a specific view directly—they must reconstruct it manually each time or give someone else step-by-step instructions to reproduce it.

Forces

  • Legible names vs. stable names: a name made from what something is called tells whoever holds the link what they are about to open, and breaks the day it gets renamed. A name made from an identifier never breaks and says nothing.
  • Restoring the view vs. handing over the sender’s settings: the more of the state a link carries, the closer the recipient’s screen is to the sender’s, and the more of the sender’s private arrangement arrives uninvited.
  • Naming states vs. rearranging freely: a state with an address is a promise to keep answering it. Reorganising later breaks links held by people who are not there to say so.

An address is the only thing shareability has to carry, so a state without one cannot be shared however good the sharing controls are. The evidence here is the web’s own: addresses that kept resolving over decades and the ones that did not.

Solution

Give every state worth returning to an address of its own, and keep that address current as the actor works, so the state can be bookmarked, sent, or resumed without being rebuilt.

What the actor set once for themselves, a theme, a density, a collapsed sidebar, is the class of state to leave out. It belongs to the person, in settings, rather than to the view, and having someone else’s arrangement imposed on arrival is a surprise, not context.

Continuation

Because an addressable link travels beyond the actor's control, decide with sharing who may open it, and give the holder a link preview of what lies at the destination, scrolled to the part the address points inside. Give each comment and each message in a thread an address of its own, and let the address carry what progressive disclosure has revealed where that narrows the view. Keep every named state resolving as the space behind it is reorganised, and where a view changes in place rather than by navigation, decide which changes become a Back step…

All connections
Precedes
Bookmarking — “Deep linking gives items and views stable addresses that restore them, and recents already cover short-term returns.”
Recents — “Deep linking gives items and views stable addresses that restore them, and bookmarking covers what the actor explicitly chose to keep.”
Enables
Cross-channel continuity — “Give every item an address that resolves across channels with deep linking, and carry that address in every notification so it opens the item itself rather than the artifact's front door.”
Tool ecology — “Let work move out by reference through deep linking, and where a copy is needed, provide import and export that states what the copy leaves behind.”
Enacts
Shareability — a link can only carry state that has a name, and deep linking is where the name comes from
Complements
Dynamic hyperlinks — URL-based addressability
Fully connected — enables direct access to any page
Handoff — “Close the transfer through explicit acceptance or refusal in status feedback, bind a deep link directly to the stopped item and state, and alert an absent receiver with a notification.”
Hub and spoke — “Give actors who know their destination a command menu and searching to reach a spoke without the hub, and use deep linking so spokes can be reached from outside the structure altogether.”
Immediate use — “Keep draft state in browser storage or encode it in deep linking, and pair with resuming so in-flight work survives across visits and reloads.”
Link preview, sharing — Because an addressable link travels beyond the actor's control, decide with sharing who may open it, and give the holder a link preview of what lies at the destination, scrolled to the part the address points inside.
Multilevel tree — enables direct access to any node
Pyramid — sharing and bookmarking items
Step by step — Structuring the space has produced a layout, and the actor can reach states that took several moves to assemble: a context switched to, an item opened, a list narrowed, a step in step by step, or a position and scale in a pan and zoom space.
Alternatives
Import and export — “Where the other tool can follow a link and does not need its own editable copy, use deep linking instead to keep a single source”
Remembered state — “Deep linking covers views that need a shareable URL; here the actor is simply coming back to their own working arrangement.”
Related to
Commenting, progressive disclosure — Give each comment and each message in a thread an address of its own, and let the address carry what progressive disclosure has revealed where that narrows the view.
Preceded by
Pan and zoom — “a continuous space has no addresses of its own; position and scale have to be made nameable before anything in it can be linked to, bookmarked, or returned to”
Enabled by
Prose — Deep linking surfaces a piece of system state as a shareable address; the prose around the link does the work of telling the recipient what they will land in.
Appears in
Structuring the space: Making the space addressable, step 1; Growing past the model, step 3
Working on the same thing: Seeing each other, step 2
Attention and tempo: Timing each notification, step 4
Memory and continuity: Supporting the actor's return, step 1
Related components
  • Messaging — Each message/thread is addressable

In practice

Where state goes

An address has three jobs to hand out. Which one a value takes follows from what the value means to the actor, not from how much state there is.

What identifies the thing

Change it and the actor is looking at something else; take it away and there is nothing left to look at.

/products/4815-modern-wristwatch
/users/alice/settings

What narrows the view

Which items are filtered in, how they are sorted, the page reached, the layout chosen. Drop these and the link still lands somewhere sensible — the same collection, unnarrowed.

/tasks?filter=completed&sort=date&view=list

Narrowing that changes what comes back is still narrowing. Page two and page one show different items and describe the same collection; two products are two things.

What points inside the view

A section of a document, a highlighted range, where a canvas is parked. It means nothing until what surrounds it is on screen, and it is usually the thing the actor was actually looking at.

/document/123#section-4
#canvas-x=1240&y=680&zoom=2.5

Most states worth sending use all three at once — the board, how it is currently narrowed, and the card in front of the actor:

/board/sprint-3?filter=assigned-to-me#card-1234

Names that survive renaming

A readable address tells whoever holds it what it points at before they open it: /products/modern-wristwatch is legible in a chat message in a way /products/4815 is not. But a name taken from a title breaks when the title changes, and titles change.

Carrying both settles most of it:

/products/4815-modern-wristwatch

The number is what resolves; the wording is there for whoever reads the link. A renamed item keeps its address, and a link sent last year arrives at the current wording rather than at a dead end.

Where the state has no natural name — a filter combination, a canvas position — a short code standing in for the whole arrangement keeps the address manageable, at two costs: the recipient can no longer read what they are about to open, and the link dies with whatever record the code stands for.

Which changes deserve a Back step

Not every change is a step in a journey. Filters adjusted one after another, a slider dragged, a default filled in on arrival — if each becomes a step, Back stops meaning “the view I was just in” and starts meaning “the keystroke before this one”, and leaving the page takes a dozen presses.

Count it as a step when it is somewhere the actor would expect Back to return them from: opening an item, running a search, moving to the next page of results. Let corrections, defaults, and rapid intermediate adjustments overwrite the current step instead of adding one.

Some platforms keep more than one history. A phone app with a tab bar usually keeps a history for each tab and treats switching tabs as no step, so the decision is made for each history the platform keeps.

Whichever way it goes, going back has to put the actor back — the view rebuilt from the address rather than from whatever happened to be left in memory. And a change the actor would call navigation should read as navigation to someone who isn’t watching the screen: when the view is replaced in place, arriving needs announcing, the way a fresh page announces itself.

The address bar is the sharing control most of the time, and copying from it is what people already do — which is why it has to keep up with the view rather than lag a step behind.

An explicit Copy link earns its place where the visible address isn’t the one worth sending: an embedded view, a state reached inside something with no address bar of its own, or a moment where the actor is unlikely to think of the address as the thing to hand over. Where the link crosses devices rather than people, a code to scan does the same job. Where the destination is someone else’s page, offer the embeddable form alongside it.

Resources & references

  • Cool URIs don’t change — Tim Berners-Lee on URL stability
  • Designing Interfaces (3rd ed.) by Jenifer Tidwell, Charles Brewer, Aynne Valencia