Open irvinlim opened 7 years ago
Then we must assume wiki title will not contain underscore?
According to Wikipedia's naming convention here:
In links, spaces ( ) and underscores (_) are treated equivalently. Underscores are used in URLs, spaces in displayed titles. Leading and trailing spaces/underscores are stripped, consecutive spaces/underscores are reduced to a single one, and page names consisting of only spaces/underscores are not allowed at all.
Titles affected by this behavior (except for the last restriction) can generally be made to display correctly using the DISPLAYTITLE magic word.
So yes, we can assume that the wiki title cannot have underscores. I don't think we need to support underscores in the title anyway.
Okay.
Suggestion: Like Wikipedia, use underscores in place of spaces in the URL, instead of
urlencode
d characters (like%20
).I think this should be handled by the backend instead of the frontend.