Skip to content

Commit f346170

Browse files
frontend: NMEAInjector: Open link in new tab
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent d298c41 commit f346170

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/frontend/src/components/nmea-injector/NMEAInjector.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ export default Vue.extend({
148148
this.show_creation_dialog = true
149149
},
150150
createLink(sentence: string): string {
151-
return `<a href="http://aprs.gids.nl/nmea/#${sentence.toLowerCase().substring(2)}">${sentence}</a>`
151+
const id = sentence.toLowerCase().substring(2)
152+
return `<a href="http://aprs.gids.nl/nmea/#${id}" target="_blank" rel="noopener noreferrer">${sentence}</a>`
152153
},
153154
},
154155
})

0 commit comments

Comments
 (0)