Skip to content

Commit ad4b2be

Browse files
committed
Fixing more invalid relative paths.
1 parent 279071d commit ad4b2be

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/content/docs/durable-objects/api/namespace.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ IDs created by `newUniqueId` will result in lower latencies when getting a [`Dur
105105

106106
#### Parameters
107107

108-
An optional object with the key `jurisdiction` and value of a [jurisdiction](durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction) string.
108+
An optional object with the key `jurisdiction` and value of a [jurisdiction](/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction) string.
109109

110110
#### Return value
111111

@@ -147,7 +147,7 @@ const stub = env.MY_DURABLE_OBJECT.get(id);
147147

148148
#### Parameters
149149

150-
A required [`DurableObjectId`](/durable-objects/api/id) and an optional object with the key `locationHint` and value of a [locationHint](durable-objects/reference/data-location/#provide-a-location-hint) string.
150+
A required [`DurableObjectId`](/durable-objects/api/id) and an optional object with the key `locationHint` and value of a [locationHint](/durable-objects/reference/data-location/#provide-a-location-hint) string.
151151

152152
#### Return value
153153

@@ -157,7 +157,7 @@ A [`DurableObjectStub`](/durable-objects/api/stub) referring to an instance of a
157157

158158
#### Description
159159

160-
`jurisdiction` creates a subnamespace from a namespace where all Durable Object instance IDs and references created from that subnamespace will be restricted to the specified [jurisdiction](durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction).
160+
`jurisdiction` creates a subnamespace from a namespace where all Durable Object instance IDs and references created from that subnamespace will be restricted to the specified [jurisdiction](/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction).
161161

162162
```js
163163
const subnamespace = env.MY_DURABLE_OBJECT.jurisdiction("foo");
@@ -166,7 +166,7 @@ const euId = subnamespace.idFromName("foo");
166166

167167
#### Parameters
168168

169-
A required [jurisdiction](durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction) string.
169+
A required [jurisdiction](/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction) string.
170170

171171
#### Return value
172172

src/content/docs/durable-objects/reference/data-location.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Workers may still access Durable Objects constrained to a jurisdiction from anyw
1313

1414
:::note[Logging]
1515

16-
A [`DurableObjectId`](../../api/id) will be logged outside of the specified jurisdiction for billing and debugging purposes.
16+
A [`DurableObjectId`](/durable-objects/api/id) will be logged outside of the specified jurisdiction for billing and debugging purposes.
1717

1818
:::
1919

20-
Durable Object instances can be restricted to a specific jurisdiction either by creating a [`DurableObjectNamespace`](../../api/namespace/) restricted to a jurisdiction, or by creating an individual [`DurableObjectId`](../../api/id) restricted to a jurisdiction:
20+
Durable Object instances can be restricted to a specific jurisdiction either by creating a [`DurableObjectNamespace`](/durable-objects/api/namespace/) restricted to a jurisdiction, or by creating an individual [`DurableObjectId`](/durable-objects/api/id) restricted to a jurisdiction:
2121

2222
```js
2323
const euSubnamespace = env.MY_DURABLE_OBJECT.jurisdiction("eu");
@@ -26,15 +26,15 @@ const euId = euSubnamespace.newUniqueId();
2626
const euId = env.MY_DURABLE_OBJECT.newUniqueId({ jurisdiction: "eu" });
2727
```
2828

29-
Methods on a [`DurableObjectNamespace`](../../api/namespace/) that take a [`DurableObjectId`](../../api/id) as a parameter will throw an exception if the parameter is associated with a different jurisdiction. To achieve this, a [`DurableObjectId`](../../api/id) encodes its jurisdiction. As a consequence, it is possible to have the same name represent different IDs in different jurisdictions.
29+
Methods on a [`DurableObjectNamespace`](/durable-objects/api/namespace/) that take a [`DurableObjectId`](/durable-objects/api/id) as a parameter will throw an exception if the parameter is associated with a different jurisdiction. To achieve this, a [`DurableObjectId`](/durable-objects/api/id) encodes its jurisdiction. As a consequence, it is possible to have the same name represent different IDs in different jurisdictions.
3030

3131
```js
3232
const euId1 = env.MY_DURABLE_OBJECT.idFromName("my-name");
3333
const euId2 = env.MY_DURABLE_OBJECT.jurisdiction("eu").idFromName("my-name");
3434
console.assert(!euId1.equal(euId2), "This should always be true");
3535
```
3636

37-
Methods on a [`DurableObjectNamespace`](../../api/namespace/) that take a [`DurableObjectId`](../../api/id) as a parameter will throw an exception if the parameter is associated with a different jurisdiction. However, these methods will not throw an exception if the [`DurableObjectNamespace`](../../api/namespace/) is not associated with a jurisdiction. The common case is that any valid [`DurableObjectId`](../../api/id) can be used in the top-level namespace's methods.
37+
Methods on a [`DurableObjectNamespace`](/durable-objects/api/namespace/) that take a [`DurableObjectId`](/durable-objects/api/id) as a parameter will throw an exception if the parameter is associated with a different jurisdiction. However, these methods will not throw an exception if the [`DurableObjectNamespace`](/durable-objects/api/namespace/) is not associated with a jurisdiction. The common case is that any valid [`DurableObjectId`](/durable-objects/api/id) can be used in the top-level namespace's methods.
3838

3939
```js
4040
const euSubnamespace = env.MY_DURABLE_OBJECT.jurisdiction("eu");

0 commit comments

Comments
 (0)