carry through access query string into embed links
This commit is contained in:
parent
c1d9a011cf
commit
29bd8fa5ad
1 changed files with 3 additions and 1 deletions
|
@ -100,6 +100,8 @@ c3nav = {
|
||||||
init_completed: false,
|
init_completed: false,
|
||||||
user_data: null,
|
user_data: null,
|
||||||
init: function () {
|
init: function () {
|
||||||
|
c3nav.access_query = new URLSearchParams(window.location.search).get("access");
|
||||||
|
|
||||||
c3nav.load_material_icons_if_needed();
|
c3nav.load_material_icons_if_needed();
|
||||||
c3nav.load_searchable_locations();
|
c3nav.load_searchable_locations();
|
||||||
|
|
||||||
|
@ -757,7 +759,7 @@ c3nav = {
|
||||||
embed_link = $('.embed-link');
|
embed_link = $('.embed-link');
|
||||||
|
|
||||||
if (embed_link.length) {
|
if (embed_link.length) {
|
||||||
embed_link.attr('href', c3nav._build_state_url(state));
|
embed_link.attr('href', c3nav._build_state_url(state)+(c3nav.access_query?('?access='+c3nav.access_query):''));
|
||||||
}
|
}
|
||||||
|
|
||||||
c3nav.state = state;
|
c3nav.state = state;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue