Skip to content

Commit 095fced

Browse files
authored
Merge pull request #2136 from MAX-IT-Tech/feat/internal-links-fix
Fix incorrect internal documentation links for the 9.1.x transition
2 parents dc750bb + cafeaff commit 095fced

22 files changed

Lines changed: 37 additions & 37 deletions

File tree

basics/installation/advanced/nginx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,4 @@ server {
175175
}
176176
```
177177

178-
[nginx-scale]: {{< ref "8/scale/webservers/nginx" >}}
178+
[nginx-scale]: {{< ref "/9/scale/webservers/nginx" >}}

basics/installation/environments/macos-specific.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Several options are available, such as:
1818

1919
## Use Docker to run PrestaShop on MacOS
2020

21-
Another good option when it comes to run PrestaShop on MacOS, is to use `Docker`: [More informations on this dedicated page]({{< relref "8/basics/installation/environments/docker">}}).
21+
Another good option when it comes to run PrestaShop on MacOS, is to use `Docker`: [More informations on this dedicated page]({{< relref "/9/basics/installation/environments/docker">}}).
2222

2323
{{<cta relref="/9/basics/installation" type="primary">}}
2424
Back to installation guide

development/components/console/prestashop-linter-legacy-link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ weight: 20
1313

1414
## Description
1515

16-
This command aims to check if [_legacy_link]({{< relref "/9/development/architecture/migration-guide/controller-routing#routing-in-prestashop" >}}) is configured in BackOffice routes.
16+
This command aims to check if [_legacy_link]({{< relref "/9/development/architecture/migration-guide/controller-routing.md" >}}) is configured in BackOffice routes.

development/components/export/csv-response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ When looping over your `callback function`, the `CsvResponse` is retrieving `$li
134134
```
135135

136136
{{% notice note %}}
137-
A good example implementation of `CsvResponse::MODE_OFFSET` can be seen in [ProductCsvExporter.php](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Product/ProductCsvExporter.php#L56-L97)
137+
A good example implementation of `CsvResponse::MODE_OFFSET` can be seen in [ProductCsvExporter.php](https://github.com/PrestaShop/PrestaShop/blob/8.0.0/src/Core/Product/ProductCsvExporter.php#L56-L97)
138138
{{% /notice %}}
139139

140140
#### Manually setting $start parameter

development/components/hook/register-new-hook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The previous step only adds the hook to _new_ shops. We also need to register th
5252
The last step is to insert the new hooks in the `ps_hooks` table using the upgrade system. Locate the X.Y.Z.sql file that refers to the PrestaShop version that will include your change: for instance, if the release expected to include this change is `1.7.5.0`, locate that file in the `upgrade/sql` folder from the [Update assistant](https://github.com/PrestaShop/autoupgrade) module.
5353

5454
{{% notice tip %}}
55-
This process is explained here: [Structure and content upgrades]({{< ref "/9/development/database/structure.md#structure-and-content-upgrades" >}})
55+
This process is explained here: [Structure and content updates]({{< ref "/9/development/database/structure.md#structure-and-content-updates" >}})
5656
{{% /notice %}}
5757

5858
Once you have located the file, add the corresponding SQL commands to add new hooks:

faq/assets-compilation-problems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ If you encounter the error message `Template "@AdminNewTheme/public/preload.html
99

1010
To resolve this issue please make sure to compile the assets correctly, you can see the [assets compilation documentation][assets-compilation] for more information.
1111

12-
[assets-compilation]: {{< relref "9/development/compile-assets" >}}
12+
[assets-compilation]: {{< relref "/9/development/compile-assets" >}}

modules/concepts/controllers/admin-controllers/override-decorate-controller.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ In the above example, the `path` has not been changed, but you can change it to
5252
{{% /notice %}}
5353

5454
{{% notice warning %}}
55-
Keep the item `_legacy_controller` if your controller relies on it to configure a [AdminSecurity annotation]({{< relref "8/development/architecture/migration-guide/controller-routing#access-rules-convention" >}}) such as `@AdminSecurity("is_granted('read', request.get('_legacy_controller'))")`
55+
Keep the item `_legacy_controller` if your controller relies on it to configure a [AdminSecurity annotation]({{< relref "/9/development/architecture/modern/controller-routing.md#access-rules-convention" >}}) such as `@AdminSecurity("is_granted('read', request.get('_legacy_controller'))")`
5656

5757
Keep the items `_legacy_controller` and `_legacy_link` if you want to reroute internal links and legacy URLs like `index.php?controller=AdminOrders` as well.
5858
{{% /notice %}}
@@ -79,9 +79,9 @@ With the following configuration item, we can override this configuration to mak
7979
# modules/your-module/config/services.yml
8080
'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController':
8181
class: MyModule\Controller\DemoController
82-
8382
```
8483

84+
8585
Thanks to this, whenever Symfony forwards a request to the Core controller `PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController` it will be forwarded to `DemoController` instead.
8686

8787
{{% notice warning %}}
@@ -109,7 +109,7 @@ With the following configuration item, we can decorate it with a custom controll
109109
custom_controller:
110110
class: MyModule\Controller\DemoController
111111
decorates: PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController
112-
arguments: ['@custom_controller.inner']
112+
arguments: ["@custom_controller.inner"]
113113
```
114114

115115
or if you are using [autowiring](https://symfony.com/doc/4.4/service_container/autowiring.html):

modules/concepts/controllers/admin-controllers/tabs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ When you create a new `Tab` it automatically creates the appropriate roles in `T
211211
- `ROLE_MOD_TAB_ADMINLINKWIDGET_READ`
212212
- `ROLE_MOD_TAB_ADMINLINKWIDGET_UPDATE`
213213

214-
These roles will allow you to manage detailed permission in your controllers, you can read this documentation if you need more details about [Controller Security]({{< ref "/9/development/architecture/migration-guide/controller-routing.md#security" >}}).
214+
These roles will allow you to manage detailed permission in your controllers, you can read this documentation if you need more details about [Controller Security]({{< ref "/9/development/architecture/modern/controller-routing.md#security" >}}).
215215
They are automatically added to the `SUPER_ADMIN` group, and the group of the Employee installing the module, but you can then edit privileges for other Employee groups.
216216

217217
{{% notice note %}}

modules/concepts/doctrine/how-to-handle-multi-lang-doctrine-entity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ There are several Doctrine plugins which allows to handle multi lang fields easi
2525

2626
{{% notice note %}}
2727
**Namespace and autoload**
28-
The content of this documentation relies on **namespaces** which need to be defined in your module's autoload, we won't cover this part here if you need more information please read [how to setup composer in a module]({{< ref "8/modules/concepts/composer#setup-composer-in-a-module" >}})
28+
The content of this documentation relies on **namespaces** which need to be defined in your module's autoload, we won't cover this part here if you need more information please read [how to setup composer in a module]({{< ref "/9/modules/concepts/composer#setup-composer-in-a-module" >}})
2929
{{% /notice %}}
3030

3131
{{% notice tip %}}

modules/concepts/forms/admin-forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ One of the most common tasks for the PrestaShop developers is to alter the data
1010
{{% notice info %}}
1111
**This system only works with pages from the "Configure" section of your back office.**
1212

13-
If you want to customize an entity form, you're looking for [Grid]({{<relref "9/development/components/grid/" >}}) and [Identifiable Objects]({{<relref "/9/development/architecture/migration-guide/forms/crud-forms">}}).
13+
If you want to customize an entity form, you're looking for [Grid]({{<relref "/9/development/components/grid/" >}}) and [Identifiable Objects]({{<relref "/9/development/architecture/migration-guide/forms/crud-forms">}}).
1414

1515
Learn how to achieve this with the [Grid and identifiable object form hooks usage example]({{<relref "/9/modules/sample-modules/grid-and-identifiable-object-form-hooks-usage">}}).
1616
{{% /notice %}}
@@ -66,7 +66,7 @@ Of course, you can override every template to improve again the rendering of the
6666
<div class="card-block">
6767
<div class="card-text">
6868
<div class="form-group">
69-
{{ ps.label_with_help(('Maximum size for attached files'|trans), ('Set the maximum size allowed for attachment files (in megabytes). This value has to be lower or equal to the maximum file upload allotted by your server (currently: %size% MB).'|trans({'%size%': 'PS_ATTACHMENT_MAXIMUM_SIZE'|configuration}, 'Admin.Advparameters.Help'))) }}
69+
{{ ps.label_with_help(('Maximum size for attached files'|trans), ('Set the maximum size allowed for attachment files (in megabytes). This value has to be lower or equal to the maximum file upload allotted by your server (currently: %size% MB).'|trans({'%size%': 'PS_ATTACHMENT_MAXIMUM_SIZE'|configuration}, 'Admin.Advparameters.Help'))) }}
7070
{{ form_errors(uploadQuotaForm.max_size_attached_files) }}
7171
{{ form_widget(uploadQuotaForm.max_size_attached_files) }}
7272
</div>

0 commit comments

Comments
 (0)