Skip to content

Commit 4e1522b

Browse files
committed
bug #1060 Fix broken links (voronkovich)
This PR was squashed before being merged into the master branch (closes #1060). Discussion ---------- Fix broken links The Symfony's documentation was greatly updated and many links in the app's source files are broken. I found all broken links and fixed each one of them where it was possible. I used this command to extract the links from the source code, so I could miss out some of them: ```sh grep -ERhoe 'https?://[^[:space:]]*\w' src assets config tests templates | sort -u ``` Commits ------- 24eeceb Fix broken links
2 parents 5e0b275 + 24eeceb commit 4e1522b

File tree

73 files changed

+365
-296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+365
-296
lines changed

assets/js/admin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'bootstrap-tagsinput';
66

77
$(function() {
88
// Datetime picker initialization.
9-
// See http://eonasdan.github.io/bootstrap-datetimepicker/
9+
// See https://eonasdan.github.io/bootstrap-datetimepicker/
1010
$('[data-toggle="datetimepicker"]').datetimepicker({
1111
icons: {
1212
time: 'fa fa-clock-o',
@@ -22,7 +22,7 @@ $(function() {
2222
});
2323

2424
// Bootstrap-tagsinput initialization
25-
// http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/
25+
// https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/
2626
var $input = $('input[data-toggle="tagsinput"]');
2727
if ($input.length) {
2828
var source = new Bloodhound({

assets/js/doclinks.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ $(function() {
2020
// Wraps Symfony's annotations
2121
var annotations = {
2222
'@Cache': 'https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/cache.html',
23-
'@Method': 'https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/routing.html#route-method',
23+
'@IsGranted': 'https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/security.html#isgranted',
2424
'@ParamConverter': 'https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html',
25-
'@Route': 'https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/routing.html#usage',
26-
'@Security': 'https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/security.html'
25+
'@Route': 'https://symfony.com/doc/current/routing.html#creating-routes-as-annotations',
26+
'@Security': 'https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/security.html#security'
2727
};
2828

2929
$controllerCode.find('.hljs-doctag').each(function() {
@@ -42,7 +42,7 @@ $(function() {
4242
return;
4343
}
4444

45-
var url = 'https://twig.symfony.com/doc/2.x/tags/' + tag + '.html#' + tag;
45+
var url = 'https://twig.symfony.com/doc/3.x/tags/' + tag + '.html#' + tag;
4646

4747
$(this).html(anchor(url, tag));
4848
});
@@ -51,7 +51,7 @@ $(function() {
5151
$templateCode.find('.hljs-template-variable > .hljs-name').each(function() {
5252
var func = $(this).text();
5353

54-
var url = 'https://twig.symfony.com/doc/2.x/functions/' + func + '.html#' + func;
54+
var url = 'https://twig.symfony.com/doc/3.x/functions/' + func + '.html#' + func;
5555

5656
$(this).html(anchor(url, func));
5757
});

config/packages/dev/swiftmailer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://symfony.com/doc/current/email/dev_environment.html
1+
# See https://symfony.com/doc/current/email.html#how-to-work-with-emails-during-development
22
swiftmailer:
33
# send all emails to a specific address
44
#delivery_addresses: ['[email protected]']

config/packages/framework.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ framework:
1313

1414
# When using the HTTP Cache, ESI allows to render page fragments separately
1515
# and with different cache configurations for each fragment
16-
# https://symfony.com/doc/current/book/http_cache.html#edge-side-includes
16+
# https://symfony.com/doc/current/http_cache/esi.html
1717
esi: true
1818
fragments: true
1919

config/packages/security.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ security:
22
encoders:
33
# Our user class and the algorithm we'll use to encode passwords
44
# 'auto' means to let Symfony choose the best possible password hasher (Argon2 or Bcrypt)
5-
# https://symfony.com/doc/current/security.html#c-encoding-the-user-s-password
5+
# https://symfony.com/doc/current/security.html#c-encoding-passwords
66
App\Entity\User: 'auto'
77

88
providers:
9-
# https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
9+
# https://symfony.com/doc/current/security/user_provider.html
1010
# In this example, users are stored via Doctrine in the database
1111
# To see the users at src/App/DataFixtures/ORM/LoadFixtures.php
12-
# To load users from somewhere else: https://symfony.com/doc/current/security/custom_provider.html
12+
# To load users from somewhere else: https://symfony.com/doc/current/security/user_provider.html#creating-a-custom-user-provider
1313
database_users:
1414
entity: { class: App\Entity\User, property: username }
1515

16-
# https://symfony.com/doc/current/security.html#initial-security-yml-setup-authentication
16+
# https://symfony.com/doc/current/security.html#a-authentication-firewalls
1717
firewalls:
1818
dev:
1919
pattern: ^/(_(profiler|wdt)|css|images|js)/
@@ -36,7 +36,7 @@ security:
3636
# When the user tries to access a protected page, they are redirected here
3737
login_path: security_login
3838
# Secure the login form against CSRF
39-
# Reference: https://symfony.com/doc/current/security/csrf_in_login_form.html
39+
# Reference: https://symfony.com/doc/current/security/csrf.html#csrf-protection-in-login-forms
4040
csrf_token_generator: security.csrf.token_manager
4141
# The page users are redirect to when there is no previous page stored in the
4242
# session (for example when the users access directly to the login page).

config/packages/test/security.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# this configuration simplifies testing URLs protected by the security mechanism
2-
# See https://symfony.com/doc/current/cookbook/testing/http_authentication.html
2+
# See https://symfony.com/doc/current/testing/http_authentication.html
33
security:
44
firewalls:
55
main:

config/routes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# These lines define a route using YAML configuration. The controller used by
22
# the route (FrameworkBundle:Template:template) is a convenient shortcut when
33
# the template can be rendered without executing any logic in your own controller.
4-
# See https://symfony.com/doc/current/cookbook/templating/render_without_controller.html
4+
# See https://symfony.com/doc/current/templates.html#rendering-a-template-directly-from-a-route
55
homepage:
66
path: /{_locale}
77
controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction

config/services.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Put parameters here that don't need to change on each machine where the app is deployed
2-
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
2+
# https://symfony.com/doc/current/best_practices.html#configuration
33
parameters:
44
locale: 'en'
55
# This parameter defines the codes of the locales (languages) enabled in the application

public/build/0.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)