Deeplinks and targets
Deeplinks take users from notifications, emails, QR labels, and external systems to a specific page in SoloDB. Standard deeplinks use an authenticated session; secure login links can sign in the user associated with the link. The destination page still applies its normal permissions.
Types of deeplink
Type | URL format | Behaviour |
|---|---|---|
Standard deeplink |
| Looks up a stored link with a user, target, optional record key, and expiry date. Uses the sign-in flow described below. The default lifetime is 100 days. |
Secure login deeplink |
| Validates an additional token, signs in the associated user, and opens the target. Used for secure access emails and administrator-generated impersonation links. By default, it expires after one day or 10 successful uses, whichever comes first. |
Record shortcut |
| Opens equipment, a chemical container, a room, a location, or a zone respectively. Used on QR labels; these routes do not sign in a user or use a stored deeplink target. |
Integration redirect |
| Opens equipment, a service, or a service event and selects the environment from the related equipment. Supports |
The lifetimes above are defaults for generated links; a caller can supply a different lifetime. Record shortcuts and integration redirects have no deeplink expiry date, but the record must exist and the visitor must have access. For equipment integration redirects, number can replace id, and destination can select general, calendar, reservations, or services, for example /redirect/equipment?number=EQ-42&destination=calendar.
Opening a standard deeplink
After checking that the link exists and has not expired, SoloDB handles sign-in as follows:
Already signed in: opens the target using the current account. It does not switch to the user associated with the link. An associated user action is marked as read.
Signed out, with an OAuth2 account associated with the link: redirects to that account's configured identity provider. After successful authentication, SoloDB returns to the original deeplink and opens its target.
Signed out, with another authentication type: shows a confirmation page with a Send secure sign-in link button. Submitting it sends a separate secure login link to the email address of the user associated with the original link, retaining the same target and record key.
A secure login link authenticates its associated user even if another account is already signed in. Its validation token must be present and valid on every use. The token is cleared when the usage limit is reached; missing or invalid tokens and exhausted links show an access error. Unknown and expired links also show an error instead of opening the target.
How targets and record keys work
A target is a reusable destination definition shared by standard and secure login deeplinks. It has a unique, readable name and a registered Laminas route name, such as equipment/details/general. The route identifies the page to open; it is not a full URL or a record identifier.
Each generated deeplink adds the user, an optional key ID, an expiry date, and its own hash. The key ID selects the record within the target page:
Setting | Example | Meaning |
|---|---|---|
Target name | Equipment details | A readable name for selecting and managing the target. |
Target route |
| The registered route for the equipment details page. |
Deeplink key ID |
| The equipment record to open. Another link can reuse this target with a different key. |
When redirecting, SoloDB supplies the key ID as the route parameter id and also as invite for project invitations. Leave it empty only when the route does not need a record key. A target does not store arbitrary route parameters or grant access to the destination. Choose a route and key that match the intended record type.
Changing a target's route changes the destination used by existing links referencing that target. In application code, DeeplinkService::createTargetFromRoute() reuses a target for the given route or creates one if needed; createDeeplink() creates a standard link, and createSecureLoginDeeplink() creates a secure login link.
Managing targets and mailings
Administrators manage targets under Management → Deeplink targets at /admin/deeplink/target/list.html. The list shows route validity and counts of unexpired and expired links. A target can be deleted only when it has no unexpired links and no mailing or transactional definition references. Expired links can be removed from this list.
A transactional mailing can select a target; the sending service supplies the recipient and record key when generating the link. For example, an equipment target needs an equipment ID, while a reservation target needs a reservation ID.
The secure access email flow requires a transactional definition with the general scope and action secure_deeplink_access. Leave its deeplink target empty so it preserves the secure link copied from the original request; setting a target would replace it with a standard link. Its email content can use {{ deeplink }} for the generated URL and {{ deeplink_target }} for the destination name.