Skip to content
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

Add support for other chars in _id #205

Open
cubap opened this issue Apr 23, 2021 · 3 comments
Open

Add support for other chars in _id #205

cubap opened this issue Apr 23, 2021 · 3 comments

Comments

@cubap
Copy link
Member

cubap commented Apr 23, 2021

<rule>
    <note>
        Redirect find annotation by provided object id.
    </note>
    <from>^/id/([a-z0-9]+)$</from>
    <to type="forward">/id/getByID.action?oid=$1</to>
</rule>
@cubap
Copy link
Member Author

cubap commented Apr 23, 2021

This will allow for flexible Slugs #96

@cubap cubap changed the title Add support for CAPITAL letters in _id Add support for other chars in _id Apr 23, 2021
@cubap
Copy link
Member Author

cubap commented Apr 23, 2021

[0-9a-zA-Z_~-\+] should do it or [\w~-\+] if that's supported.

@cubap
Copy link
Member Author

cubap commented Apr 23, 2021

I support not supporting anything that has to be URLEncoded (%25 kind of stuff) or stuff that has a reserved use. This means no ?!%$,.@#&^*()\|/"'``:;<>[]{}=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant