mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Link to whats-new section, not version fragment identifier
This commit is contained in:
@@ -30,14 +30,13 @@ export function uiVersion(context) {
|
||||
|
||||
// only show new version indicator to users that have used iD before
|
||||
if (isNewVersion && !isNewUser) {
|
||||
var fragment = currVersion.replace(/\./g, '');
|
||||
selection
|
||||
.append('div')
|
||||
.attr('class', 'badge')
|
||||
.append('a')
|
||||
.attr('target', '_blank')
|
||||
.attr('tabindex', -1)
|
||||
.attr('href', 'https://github.com/openstreetmap/iD/blob/master/CHANGELOG.md#' + fragment)
|
||||
.attr('href', 'https://github.com/openstreetmap/iD/blob/master/CHANGELOG.md#whats-new')
|
||||
.call(svgIcon('#gift-11'))
|
||||
.call(tooltip()
|
||||
.title(t('version.whats_new', { version: currVersion }))
|
||||
|
||||
Reference in New Issue
Block a user