Add instance name in survey link
This'll permit to ask user's email if it uses a local instance
This commit is contained in:
parent
28eba4ebf0
commit
63d48d4de9
|
@ -102,7 +102,7 @@
|
|||
|
||||
<a
|
||||
id="voxpeople"
|
||||
:href="'https://framaforms.org/quel-est-votre-avis-sur-happydns-1610366701?u=' + (user_isLogged?user_getSession.id:0) + '&p=' + $router.history.current.name + '&l=' + $i18n.locale"
|
||||
:href="'https://framaforms.org/quel-est-votre-avis-sur-happydns-1610366701?u=' + (user_isLogged?user_getSession.id:0) + '&i=' + instancename + '&p=' + $router.history.current.name + '&l=' + $i18n.locale"
|
||||
target="_blank"
|
||||
:title="$t('common.survey')"
|
||||
>
|
||||
|
@ -143,6 +143,9 @@ export default {
|
|||
},
|
||||
|
||||
computed: {
|
||||
instancename () {
|
||||
return window.location.hostname
|
||||
},
|
||||
...mapGetters('user', ['user_getSession', 'user_getSettings', 'user_isLogged'])
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user