-
Notifications
You must be signed in to change notification settings - Fork 7
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
main.py: cards: get right version from abs_url #271
Conversation
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
main.py
Outdated
url_parts = re.search("//([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/", canonical) | ||
(site, project, edition, language, version) = url_parts.groups() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
site
is not really useful. Those two lines should be removed, and site
removed below from the rebuilt URLs passed to the cards.
Quality Gate passedIssues Measures |
See #288 |
Bug example:
https://doc.ibexa.co/projects/userguide/en/4.5/persona_paths/author_content/ "Edit image"
In persona_paths/author_content.md, content_management/edit_images/ refers to 4.5 file which doesn't exist on master or 4.6 (moved to image_management/edit_images/).
Bug origin: The
canonical_url
is always onlatest
(4.6) socards
may compute a wrong cross-version URL (404).Bug fix: usedoesn't work: onabs_url
to get the right version.4.5
prod,version
still equalslatest
.Checklist