CenterForDigitalHumanities / rerum_server

Java web service for a RERUM compliant digital object repository
http://rerum.io
Other
7 stars 2 forks source link

Add support for other chars in `_id` #205

Open cubap opened 3 years ago

cubap commented 3 years ago
<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 commented 3 years ago

This will allow for flexible Slugs #96

cubap commented 3 years ago

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

cubap commented 3 years ago

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