Skip to content

Commit 48c9b29

Browse files
Dev docs links (#1252)
* Update architecture-database.md * Update architecture-routes.md * Update utilities-translation.md * Update architecture-authentication.md * Update frontend-controllers.md
1 parent 04b6c0d commit 48c9b29

5 files changed

+9
-9
lines changed

dev/documentation/en/architecture-authentication.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ CSRF tokens must be sent with all `POST`, `PUT` or `DELETE` requests to prevent
2929
$csrfToken = $request->getSession()->getCSRFToken();
3030
```
3131

32-
CSRF tokens are not required for requests to the API when the [API Token](/dev/api/#api-token) is used.
32+
CSRF tokens are not required for requests to the API when the [API Token](/dev/api/ojs/3.4#tag/Authentication/API-Token) is used.
3333

3434
### Page Routes
3535

@@ -72,7 +72,7 @@ API Handlers automatically check the CSRF token for all `POST`, `PUT` or `DELETE
7272

7373
## UI Library
7474

75-
A CSRF token is available as a global variable when working with the UI Library. Learn more about using the [CSRF Token](/dev/ui-library/dev/#/pages/csrf) in ajax requests.
75+
A CSRF token is available as a global variable when working with the UI Library. Learn more about using the [CSRF Token](/dev/ui-library/dev/#/pages/api#csrf-token) in ajax requests.
7676

7777
## User Session
7878
The user's session stores a logged-in user's IP address, last-used date/time and more. You can access the current user's session directly.
@@ -92,4 +92,4 @@ The [Handlers](./architecture-handlers) should perform any authentication and au
9292

9393
---
9494

95-
Now that we know who the user is, learn [how we authorize their access to different operations](./architecture-authorization).
95+
Now that we know who the user is, learn [how we authorize their access to different operations](./architecture-authorization).

dev/documentation/en/architecture-database.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ mysql> select * from journal_settings where journal_id=1 and setting_name='keywo
4848
+------------+--------+--------------+---------------+--------------+
4949
```
5050

51-
Properties in an entity's [schema](./architecture-entities#schemas) that are an array or object are serialized to JSON when they are stored in the settings table.
51+
Properties in an entity's [schema](./architecture-entities#schema) that are an array or object are serialized to JSON when they are stored in the settings table.
5252

5353
```
5454
mysql> select * from journal_settings where journal_id=1 and setting_name='supportedLocales';

dev/documentation/en/architecture-routes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The router will **not** find a file at `/lib/pkp/api/v1/submissions/index.php`.
5858

5959
## Controller Routes
6060

61-
The diagram below shows a URL for a [Controller Handler](architecture-handlers#controller-handlers).
61+
The diagram below shows a URL for a [Controller Handler](architecture-handlers#controller-handlers-deprecated).
6262

6363
![Diagram indicating the parts of a URL for Controller Handlers](../img/url-route-controller.png)
6464

dev/documentation/en/frontend-controllers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class PKPReviewerGridHandler extends GridHandler
130130
}
131131
```
132132

133-
Finally, the grid must define a `loadData` method that gets the items to be displayed. It should return an `array` of [DataObjects](./architecture-entities#dataobject-class).
133+
Finally, the grid must define a `loadData` method that gets the items to be displayed. It should return an `array` of [DataObjects](./architecture-entities#dataobject).
134134

135135
```php
136136
use APP\core\Request;
@@ -357,7 +357,7 @@ Every action created by the grid handler or the grid row will require an operati
357357

358358
Most controllers are used to display a `Form`, which displays the form, receives the form submission, validates the input, and executes the changes.
359359

360-
> The forms described here are used by Controllers which have been deprecated. Use the forms in the [UI Library](./frontend-components#forms) when building forms for new features.
360+
> The forms described here are used by Controllers which have been deprecated. Use the forms in the [UI Library](/dev/ui-library/3.4/#/component/Form) when building forms for new features.
361361
{:.warning}
362362

363363
Every form extends the `Form` class. Define the template to use to render the form and add validation checks in the constructor method.

dev/documentation/en/utilities-translation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Translation - Technical Documentation - OJS|OMP|OPS
88

99
PKP's applications support multilingual publishing. This means the application can be translated into any language. It also means that each journal, press or preprint server can publish material in more than one language. This chapter will describe how to use translations and work with multilingual data.
1010

11-
> This guide describes how to work with translations when coding for PKP applications. Visit the [translating guide](./translating) to create or edit a translation of PKP software.
11+
> This guide describes how to work with translations when coding for PKP applications. Visit the [translating guide](/translating-guide/) to create or edit a translation of PKP software.
1212
{:.notice}
1313

1414
## Translations
@@ -132,7 +132,7 @@ msgstr[2] "%d Komentarzy"
132132

133133
A journal, press or preprint server may publish in more than one language. For that reason, all data objects and forms must accept content in more than one language.
134134

135-
> The Entities chapter describes how to [get multilingual data in the DataObject class](/dev/documentation/en/architecture-entities#dataobject-class) and how to [define multilingual properties in the schema](/dev/documentation/en/architecture-entities#multilingual).
135+
> The Entities chapter describes how to [get multilingual data in the DataObject class](/dev/documentation/en/architecture-entities#dataobject) and how to [define multilingual properties in the schema](/dev/documentation/en/architecture-entities#schema).
136136
{:.notice}
137137

138138
Each journal, press, or preprint server can enable a locale in the UI, forms and submissions.

0 commit comments

Comments
 (0)