Skip to content

Pretty URLs

Compare
Choose a tag to compare
@Munter Munter released this 03 May 19:43
· 40 commits to master since this release

Pretty URLs

Some web services let you link to a page without its .html extension. Hyperlink would fail when checking such links. A newly added --pretty boolean option enables support for these 'pretty' URLs.

Example:

<!-- /index.html -->
<a href="about">About</a>

<!-- /about.html -->
<h1>I am the about page</h1>

Name attributes as fragment identifiers

Although it's deprecated in HTML5 to use fragments to link to an elements name-attribute, the practice is still in wide use and browser also still support it.

The user interaction of clicking a link and having it work is more important than sticking to the word of the standard, so if browsers give a successful experience here, so should we.

Example:

<a href="#namefragment">goto</a>
<a name="namefragment">Welcome</a>