-
-
Notifications
You must be signed in to change notification settings - Fork 164
Format protected and public paths with site prefix #1204
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?
Conversation
Update protected and public paths to include site prefix.
|
This seems reasonable ! you can test it by running |
|
Yes I wrote it in my previous comment (on original PR). |
|
I don't think we should silently correct values, we should validate the presence of the initial / in https://github.com/sqlpage/SQLPage/blob/main/src/app_config.rs#L108 |
|
I looked at the errors reported by CI. |
|
Instead of cloning the strings as-is and then mutating them, you can create the correct strings with format! directly the first time ! |
|
I agree. Looks like more than a simple patch 😄. Let me a day or two and I'll come back with something more polished. |
|
Here it is
This may break existing configuration for those having set absolute paths that already include site_prefix. |
Update protected and public paths to include site prefix.
Issue #1203
Sorry just a proposition. I do have dev knowledge but nothing about rust.