diff --git a/schedules/app/javascript/packs/schedules.js b/schedules/app/javascript/packs/schedules.js index ca60a1da9e0a6ae8d263aeef2990463b273e943a..1745879cad73acf4282b835664314eccb22a43b2 100644 --- a/schedules/app/javascript/packs/schedules.js +++ b/schedules/app/javascript/packs/schedules.js @@ -69,6 +69,7 @@ const initListeners = () => { document.getElementById('save-image').onclick = saveImage; document.getElementById('share-url').innerText = `${window.location.protocol}//${window.location.hostname}/schedule/view?crns=${Cart._courses.join(',')}`; + document.getElementById('share-url').href= `${window.location.protocol}//${window.location.hostname}/schedule/view?crns=${Cart._courses.join(',')}`; }; if (!HTMLCanvasElement.prototype.toBlob) { diff --git a/schedules/app/views/schedules/show.html.erb b/schedules/app/views/schedules/show.html.erb index abeaa5b8aec265378177888b0be0880a990fd9cb..569c61a21b32d57e80b9c51cdcc4b0f3c0b34262 100644 --- a/schedules/app/views/schedules/show.html.erb +++ b/schedules/app/views/schedules/show.html.erb @@ -34,7 +34,7 @@
+