Clean the internal links in `rest.html`

Remove numbers from IDs.