Closed RaoOfPhysics closed 5 years ago
Yes, that should not be the case. Thanks for spotting!
Two methods to do it but it is not recommended as it creates multiple entries for the search engine.
import re from werkzeug.routing import Rule, RequestRedirect
class CIRule(Rule): def compile(self): Rule.compile(self) self._regex = re.compile(self._regex.pattern, re.UNICODE | re.IGNORECASE)
from flask import Flask
class CIFlask(Flask): url_rule_class = CIRule
* http://opendata.cern.ch/about/CMS-Physics-Objects works, but * http://opendata.cern.ch/about/CMS-physics-objects is broken!
Those 2 links points to the same page and some others I checked are case insenstive. I guess this was fixed?
@heitorPB Thanks, yes, we had fixed it in the meantime.
Shouldn't the URLs be case-insensitive? Currently, for example: