# TS27 — SPA states and routes produce shareable URLs and consistent server responses.

> Practical guide and complete protocol wording; fictional examples, without a website assessment.

Version: 0.3.0-draft.9 — published draft release.

Commit: `d6a6e73f5c21d52131d3f4e39cde309d97385cbc`.

SHA-256 (spec/protocol.json): `3af55b64677ccd74d3ccfcc49f3dbf469c90fb214844fe13c5f10773a11d9041`.

Attribution: Edikka. Protocol text and data: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

[Normative JSON source](https://github.com/web-evidence/tsep/blob/v0.3.0-draft.9/spec/protocol.json).

[Canonical HTML control page](https://tsep-protocol.org/en/controls/TS27).

## SPA routes. Shareable pages.

Test direct opening, refresh and history on SPA routes. Check server response, content and canonical for each state.

Editorial responsibility: Edikka. Guide updated 2026-10-28 · 2026-10-28.2

### 01 · Understand

A route can work from the home page but fail when a visitor pastes its URL into a new tab. TS27 examines navigation states separately: a successful in-app click does not prove the server response for the same address.

A route and state must remain attributed to their evidence. A home-page capture does not validate every destination served by the same shell.

- **Direct opening** — Access to the route without first visiting another application page.
- **Navigation state** — A context reached after a click, refresh or history navigation, with its own signals.

Google documents JavaScript application issues including routes, links and errors. Tests must concern actual shareable URLs. [Fix JavaScript search problems](https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript).

### 02 · Check — Open the route. Replay history.

Test an existing and a nonexistent route from an internal link, directly and after reload. Then use browser Back and Forward.

1. Declare URL, content, HTTP status and expected metadata for every state. The shared shell does not represent every page.
2. For direct access and reload, retain document response, final URL and DOM. For client transitions, record data requests and title/canonical changes.
3. Go back then forward. Check content, selection and address together: an old title on a new route remains a discrepancy.
4. Fix server routing, error handling or metadata, then repeat the matrix. Document limits of client-only error handling.

#### A valid route and a negative fixture

**Fictional test expectations**

```text
/products/p-42: direct 200 + product; link + product; reload 200 + product
/products/unknown: direct 404 + error; link + error; reload 404 + error
Back/forward: consistent address, content and title
```

During client navigation without a new document request, do not invent a document HTTP status: record the transition mode.

Browser rendering does not guarantee indexing. A nonexistent route served with a 200 shell needs examination as a soft-404 risk.


#### A product route lost on refresh

Fictional example, illustrative values.

Before

```text
Internal click → /products/p-42: product visible
Direct opening → server 404
Refresh → error page
```

After

```text
Existing route: intended initial 200 document
P-42 product and route canonical retained
Nonexistent route: explicit error handling tested
```

The fix must cover both existing and missing routes. A blanket 200 rewrite can solve direct opening while creating false successes.

#### Evidence to retain

Route plan, initial responses, captures and DOM per state, URLs, metadata, action order, tool and dates.

#### Scope of the conclusion

Choosing SSR, CSR or SSG does not itself validate SEO. The check concerns tested routes and states without proving indexing.

#### Continue in TSEP Control

Prepare the evidence described in this guide. The application shows available workflows and required inputs: a control’s presence in the catalogue does not mean its automatic assessment is available.

[TSEP Control](https://app.tsep-protocol.org/?lang=en)

### 03 · Act — The right state. At the right address.

#### Server not configured for routes

Align server and client routing with intended resources. Also test nonexistent addresses.

#### Home-page canonical everywhere

Make signals route-specific and check their updates after each state change.

#### Inconsistent history

Fix address and content management together. Back should not retain another route’s data under the old URL.

Who acts: Frontend and server teams, with technical SEO.

### 04 · Recheck — A complete journey. An explicit error.

Repeat both routes through all three entry modes and history. Also retain the negative fixture result.

1. Repeat the full direct, click, refresh and history sequence.
2. Add new routes to the regression plan.

### Frequently asked questions

#### Must a SPA switch to SSR?

The control does not impose one architecture. Verify behaviour and dependencies, then choose a solution suited to observed constraints. [Reference](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics).

#### Is returning 200 for every route enough?

No. Nonexistent routes and incorrect content must remain distinct from valid pages. Check intended status and content for each case. [Reference](https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript).

### Statuses, sources and related controls

- **C · Conforming** — The applicable rules are evidenced within the declared scope. Read this control’s scope: C certifies neither the whole site nor a search engine outcome.
- **NC · Nonconforming** — Attributable evidence contradicts an applicable expectation. An unknown on another point does not erase that contradiction.
- **NT · Not tested or inconclusive** — Required evidence, context or review is missing or unresolved. The detailed rules specify the conditions for a conclusion.
- **NA · Not applicable** — No relevant application or SPA route.

- [Fix JavaScript search problems](https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript) · accessed 2026-10-28
- [Understand JavaScript SEO](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) · accessed 2026-10-28
- [HTTP status codes and Google crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) · accessed 2026-10-28

- [TS03 — Avoid false success on missing routes.](https://tsep-protocol.org/en/controls/TS03)
- [TS17 — Publish resolvable links.](https://tsep-protocol.org/en/controls/TS17)
- [TS30 — Check metadata per route.](https://tsep-protocol.org/en/controls/TS30)

### Practical reading · Edikka

[Website acceptance testing before launch](https://www.edikka.com/en/insights/web-development/website-acceptance-testing-before-launch)

To include direct routes and critical journeys in launch acceptance testing.

Article by TSEP’s initiator · accessed 2026-10-28


---

## Complete protocol wording

Domain: JavaScript and rendering.

Rule version: 0.3.0-draft.4.

## Required inputs

http, render, intent

## Applicability

Application routes or SPA states intended for indexing.

## Procedure

Open routes directly and test refresh, history, canonical and HTTP status.

## Expectation

Direct opening, refresh and history preserve the expected URL, content, status and signals for each selected route.

## Evidence

Each indexable view has its own URL, 200 response, content and signals.

## Non-applicability

No relevant application or SPA route.

## Limitations

Choosing SSR, CSR or SSG is not in itself an SEO guarantee.

## Outcome clarification

C requires all expectations across the declared scope. NC requires evidenced contradiction; otherwise NT. NA requires evidence of non-applicability.

## Reference scope

Technical reference; the TSEP acceptance rule remains an editorial proposal.

## Atomic rules

### TS27-A01 — Attributed routes and history

#### Required inputs

http, render, intent

#### Applicability

Prior finite TS27 population under render-transport-v1; see docs/render-transport-evidence.md.

#### Procedure

Check four supplied states in direct, refresh, back, forward order: session, sequence, time, URL, server-response binding and status.

#### Expectation

Every state retains its route URL and intended200 source. A qualified conflicting URL or status fails.

#### Evidence

Exact originals, plan and dates/context, fingerprints, diagnostics and reasoned review bound to the entire dossier. Kinds: http, render, intent.

#### Assumptions

Supplied unauthenticated provenance, inventory, browser state, conditions and judgment; two static HTML readings are not two navigations. TLS trust depends on supplied roots.

#### Inconclusive outcome

Missing/ambiguous state, action, binding, session or order; uncollected frame/shadow surface: NT.

#### Non-applicability

No atomic NA. Empty population or claimed absent domain without evidence remains NT in this profile.

#### Limitations

No real audit inferred from synthetic cases. No indexing, ranking, global conformity, accessibility certification, exhaustive security or universal browser trust. Reviews may be wrong and captures may omit states.

### TS27-A02 — Content and canonical in each SPA state

#### Required inputs

http, render, intent

#### Applicability

Prior finite TS27 population under render-transport-v1; see docs/render-transport-evidence.md.

#### Procedure

Within the same qualified states compare literal IDs, essential text and link destinations with the plan, then one explicit head canonical. Require operation review.

#### Expectation

States retain their intended content and signals. Absence on a complete surface, differing content or conflicting canonical fails.

#### Evidence

Exact originals, plan and dates/context, fingerprints, diagnostics and reasoned review bound to the entire dossier. Kinds: http, render, intent.

#### Assumptions

Supplied unauthenticated provenance, inventory, browser state, conditions and judgment; two static HTML readings are not two navigations. TLS trust depends on supplied roots.

#### Inconclusive outcome

Partial state, hidden context, ambiguous ID, differing HTML hypotheses or absent review: NT.

#### Non-applicability

No atomic NA. Empty population or claimed absent domain without evidence remains NT in this profile.

#### Limitations

No real audit inferred from synthetic cases. No indexing, ranking, global conformity, accessibility certification, exhaustive security or universal browser trust. Reviews may be wrong and captures may omit states.

## References

- [https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript](https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript)
