-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(internal-link): event on request #53500
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
Conversation
b30bcd4 to
b8c8a4c
Compare
provokateurin
left a comment
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.
Not really happy about this hack 🤷♀️
e9eb8cf to
dcfe94a
Compare
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
dcfe94a to
5fcb7c2
Compare
went to something simpler: no changes are made to the file id, just the possibility to create a new Response |
|
Please explain the usecase better. |
|
I think I see the confusion with expecting fileid to be an int, but fileid was already considered string in that part of code, hence the cast. Maybe rename the parameter ? Regarding use-cases, the approach is to keep the same endpoint but store more data in the 'fileid' parameter. The instant use of this feature is to store the identity of the local instance when creating internal link in a global scale env. |
But even your example in the description uses an int: "Allow a modification of the behavior on internal-link request ('/index.php/f/12345')"
Why do you want to reuse the same endpoint for something else? You can use your own endpoint with your own parameters.
I did not understand yet who is generating the link. The global scale PR says "On the front-end, the generated link now contains the local identity token: |
|
Frontend wise its also easy to just use a new endpoint for GS instead, so we can have a clean API if that is what you requested. E.g. we could also generate links for |
|
closing, will allow |
1 similar comment
|
closing, will allow |
Allow a modification of the behavior on internal-link request (
'/index.php/f/12345')Any listener can change the value of the FileId or even force a new
Response()to be sent back to the client.