Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Url.setHash

setHash($newHash) -> self

Description

Set the hash part of the Url.

$site = url'/home#section-2'

$site.setHash('section-3')

$site.renderString()
//= '/home#section-3'

See Also