Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target resolution to redirect model #16901

Open
wants to merge 2 commits into
base: 11.x
Choose a base branch
from

Conversation

dweiss96
Copy link

@dweiss96 dweiss96 commented Apr 5, 2024

Changes in this pull request

Resolves #16896

Additional info

When working with redirects on a code level there is no "built-in" method to get the actual target path since it could be a document id as well.

When reading redirects with php code the target can be either a path or a site id.
The type of the redirect does not reflect the nature of the target link.
With type `path` it can either be an id or a path string.
Therefore an additional method for getting the actual target path is required.
Copy link

github-actions bot commented Apr 5, 2024

Review Checklist

  • Target branch (11.2 for bug fixes, others 11.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

Copy link

sonarcloud bot commented Apr 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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

Successfully merging this pull request may close these issues.

[Improvement]: Redirect Class should have methods to get safe target path
2 participants