WYHNUS / ExchangeBuddy

Find your exchange buddies!
5 stars 0 forks source link

Prettier wiki URL #131

Open irvinlim opened 7 years ago

irvinlim commented 7 years ago

Suggestion: Like Wikipedia, use underscores in place of spaces in the URL, instead of urlencoded characters (like %20).

I think this should be handled by the backend instead of the frontend.

WYHNUS commented 7 years ago

Then we must assume wiki title will not contain underscore?

irvinlim commented 7 years ago

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.

WYHNUS commented 7 years ago

Okay.