Skip to content

IBX-4175: Add links checker#2130

Draft
adriendupuis wants to merge 33 commits into5.0from
test-links
Draft

IBX-4175: Add links checker#2130
adriendupuis wants to merge 33 commits into5.0from
test-links

Conversation

@adriendupuis
Copy link
Copy Markdown
Contributor

@adriendupuis adriendupuis commented Sep 5, 2023

Question Answer
JIRA Ticket IBX-4175
Versions N/A
Edition N/A

Add a script to test internal and external links.

  • Warn about broken links (not found, redirections, privates, etc.)
    • External links shouldn't be redirection (a redirection might be a not accurate enough replacement after a removal)
  • Check if the fragment/anchor/hash exists (could be the symptom of moved content from one page to another)

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

|| str_starts_with($url, 'https://api.cloud.ibexa.co') // 301, PLATFORMSH_CLI_API_URL
//|| str_starts_with($url, 'https://admin.perso.ibexa.co/api/') // 400
|| str_starts_with($url, 'https://admin.perso.ibexa.co/') // 404
|| str_starts_with($url, 'https://event.perso.ibexa.co/api/') // 400
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|| str_starts_with($url, 'https://event.perso.ibexa.co/api/') // 400
|| str_starts_with($url, 'https://event.perso.ibexa.co/api/') // 404
|| str_starts_with($url, 'https://tracker.ibexa.co/api/') // Could not resolve host

Copy link
Copy Markdown
Contributor Author

@adriendupuis adriendupuis Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| str_starts_with($url, 'https://event.perso.ibexa.co/ebl/') // 404
|| str_starts_with($url, 'https://import.perso.ibexa.co/api/') // 400
|| str_starts_with($url, 'https://reco.perso.ibexa.co') // 403
;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
;
|| str_starts_with($url, 'https://flex.ibexa.co') // Could not resolve host
;

Comment thread tools/links/links.config.php Outdated
'[[= user_doc =]]' => 'https://doc.ibexa.co/projects/userguide/en/master',
];

$find = true;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$find = true;
$find = './docs/*/';

@github-actions
Copy link
Copy Markdown

Preview of modified Markdown: no Markdown change to preview.

@mnocon mnocon changed the base branch from master to 5.0 May 19, 2025 07:35
@github-actions
Copy link
Copy Markdown

Preview of modified files: no change to preview.

|| str_contains($url, '//server_uri')
|| str_contains($url, '//FRA_server_uri')
|| str_contains($url, '//user:password@host')
|| str_contains($url, '//user:pass@localhost')
|| str_contains($url, '//solr:8983')
|| str_contains($url, '//varnish:80')
|| str_contains($url, '//my.varnish.server')
|| str_contains($url, '//myuser:[email protected]')
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6 Security Hotspots
C Security Rating on New Code (required ≥ A)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants