Rethink parsing and generation of urls #274
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha#274
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
URL parsing currently happens in
HyphaRequestand has already been improved a lot. However, there might still be things to improve here (e.g. for removing duplicate code in dewikifying in #147 or making things a bit more readable perhaps).On the other hand, url generation is quite ad-hoc at the moment. With the ongoing datatype refactor, part of this generation is handled in
constructFullPathmethods in the datatypes, but that should probably be handled in a more central place (and the method should get a better name, too).Some considerations:
['edit']and get/<current_language>/<current_page>/edit), generate an url to another page without knowing how the url scheme works exactly.PlanBCode/hypha@be51f688ed/system/datatypes/peer_reviewed_article.php (L76)PlanBCode/hypha@be51f688ed/system/datatypes/peer_reviewed_article.php (L710)rawurlencode/rawurldecode.I added a point about urlencoding/decoding in the first post. This came up with the tagindex, which now manually urldecodes, but this should really be handled by HyphaRequest.