OrchardCMS / OrchardDoc

Documentation for Orchard 1.x (not Orchard Core, for that see https://docs.orchardcore.net/).
http://docs.orchardproject.net
142 stars 241 forks source link

clean up the fragment regex #226

Closed rtpHarry closed 8 years ago

rtpHarry commented 8 years ago

Fixes #222

Cleaned up the #fragment generation to strip everything except letters and numbers.

Previously it was generating urls with ? and other characters like ®

Potentially may break some existing internal links within the documentation but I have done a regex search on the existing docs for fragments containing ? or ' but there weren't any.

If it does break a link then it will still direct them to the page it just won't scroll it down to the #fragment.