canonical / canonicalwebteam.discourse

GNU Lesser General Public License v3.0
11 stars 16 forks source link

Make url_prefix optionnal in url map #54

Closed tbille closed 3 years ago

tbille commented 3 years ago

Summary

Make the url_prefix optional in the url_map

The URL map can look like this now, if url_prefix==/docs:

# URLs

[details=Mapping table]

| Topic | Slug |
| -- | -- |
| <discourse_url> | /toto |
| <discourse_url> | tata |
| <discourse_url> | /docs/titi |
[/details]

This means that:

# URLs

[details=Mapping table]

| Topic | Slug |
| -- | -- |
| <discourse_url> | /toto |   -> /docs/toto
| <discourse_url> | tata |   -> /docs/tata
| <discourse_url> | /docs/titi |    -> /docs/titi
[/details]

QA