-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
base: main
Are you sure you want to change the base?
Feat/clean share url #5832
Conversation
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
…g new local $button variable
* 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
that should be part of a later PR
cf661c1
to
519b964
Compare
@eliandoran This is ready for reivew. @pano9000 FYI, if you have time would like to check it also. |
Really looking forward to this feature, I'm assuming it's also going to fix the current state of "Redirect bare domain to Share page" not working as intended? |
📚 Documentation preview is ready! 🔗 Preview URL: https://pr-5832.trilium-docs.pages.dev ✅ All checks passed This preview will be updated automatically with new commits. |
Continuation of TriliumNext/Notes#1781.