Skip to content

Feat/clean share url #5832

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

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

Feat/clean share url #5832

wants to merge 39 commits into from

Conversation

eliandoran
Copy link
Contributor

Continuation of TriliumNext/Notes#1781.

maphew and others added 30 commits February 25, 2025 14:51
1st time using Meld. I'm not sure if the conflict resolve is clean
commented out for now, to make sure we get back to it – not sure if it was suppossed to have any special other reason to exist
caused by having other several save operation inside the save() method (which doesn't even make sense to begin with, as far as I can tell)

moving it to inside the "change" event handler allows us to set and store a custom share path again
there's no need to execute PUT requests for *all* Share Settings, when any option changes

moved the code to inside the "change" event handlers
…rectBareDomain change

→ that is what the shareRootCheck button is there for
* add rudimental error handling
* add handling of special case, where one has multiple shared notes with a #shareRoot label
* refactor styling into auxiliary setCheckShareRootStyle function
* add normalization helper to ensure string does not start with multiple trailing slashes or ends with a trailing slash
* fall back to default "/share" when empty string is entered
it currently fails trying to import the class though
a "manual" importing of the function did pass all checks though

-> will need to investigate why importing the class does not work like that
that should be part of a later PR
normalization is happening in the share settings options widget in the meantime, making it more obvious to the user
that should be part of a later PR
needs to currently mention, that a server restart is required
…working

this will be handled by cleanUrl PR later on
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jun 21, 2025
@dosubot dosubot bot added BE Issues related to server-side/back-end Type: Enhancement UI Issues related to user-interface/front-end labels Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE Issues related to server-side/back-end size:XL This PR changes 500-999 lines, ignoring generated files. Type: Enhancement UI Issues related to user-interface/front-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants