I have Nexcloud 23 running on Ubuntu.
When I create a new share link Nexcloud creates that link and copies the link to clipboard.
Somethink like http://localhost/index.php/s/f5itJz3qZEzoLPe
Where is the PHP/JS file where the code for that happens (copy to clipboard)?
Thanks for the reply but I could not get a change in the program.
There were two lines that had the “/s/” parameters but changing those did not result any changes in program execution. The link remains the same even if I change those lines.
ofc it stays the same. You asked where the URL is being generated, i found the file for you. It’ll take some more programming to change how the url is generated.
I modified public.js and inserted many alert(“hello”) -code snippets. None of them gets triggered. I don’t think public.js is executed when I click the “+” button to “create a new share link”.
I tried that and also the “Configurable Share Links”. Unfortunately they and not what I am looking for. I am trying to make an automated “rename-link” of sorts and need to do custom coding. So I need to find the code part where the link name is created so I can add some extra code there.