Skip to content

Conversation

@adriendupuis
Copy link
Contributor

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
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
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
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
;

'[[= user_doc =]]' => 'https://doc.ibexa.co/projects/userguide/en/master',
];

$find = true;
Copy link
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

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

Preview of modified files: no change to preview.

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.

1 participant