You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with using Bookstack as a PWA is that you cannot simply copy the link to the page. On a desktop, it is still possible to get the link via the browser menu, but this actually happens outside the app. However, this is not possible on a smartphone.
My current workaround is to go out of the page and then press and hold the link to the page.
My suggestion:
Add a "Share" button below the export button. Perhaps with several options as with exporting, such as copy link, share in another app.
Describe the benefits this would bring to existing BookStack users
You always work completely in the web app and do not have to switch to browser functions. In my humble opinion, sharing pages is also a common use.
Can the goal of this request already be achieved via other means?
Yes, for desktop clients via the three-point menu> More tools> Use copy link
Alternatively, navigate out of the page and then copy the link from it.
Have you searched for an existing open/closed issue?
I have searched for existing issues and none cover my fundamental request
How long have you been using BookStack?
3 months to 1 year
Additional context
No response
The text was updated successfully, but these errors were encountered:
For the feature to work you need to use the visual theme system.
Create a theme and within that theme create the following file and folder: entities.share-link.blade.php
Put in the following code:
<buttontype="button"
id="share-link-button"
data-success-text="Link copied to clipboard!"
class="icon-list-item text-link"><span>@icon('share')</span><span>{{ trans('common.share') }}</span></button><scriptnonce="{{ $cspNonce }}">(asyncfunction(){constshareButton=document.getElementById('share-link-button');shareButton.addEventListener('click',event=>{copyTextToClipboard(window.location.href);window.$events.success(shareButton.dataset.successText);});asyncfunctioncopyTextToClipboard(text){if(window.isSecureContext&&navigator.clipboard){awaitnavigator.clipboard.writeText(text);return;}// Backup option where we can't use the navigator.clipboard APIconsttempInput=document.createElement('textarea');tempInput.style='position: absolute; left: -1000px; top: -1000px;';tempInput.value=text;document.body.appendChild(tempInput);tempInput.select();document.execCommand('copy');document.body.removeChild(tempInput);}})()</script>
Now you need to add a line to each show.blade.php of the pages, books, chapters and shelves. I've put this directly under the export button:
Describe the feature you'd like
The problem with using Bookstack as a PWA is that you cannot simply copy the link to the page. On a desktop, it is still possible to get the link via the browser menu, but this actually happens outside the app. However, this is not possible on a smartphone.
My current workaround is to go out of the page and then press and hold the link to the page.
My suggestion:
Add a "Share" button below the export button. Perhaps with several options as with exporting, such as copy link, share in another app.
Describe the benefits this would bring to existing BookStack users
You always work completely in the web app and do not have to switch to browser functions. In my humble opinion, sharing pages is also a common use.
Can the goal of this request already be achieved via other means?
Yes, for desktop clients via the three-point menu> More tools> Use copy link
Alternatively, navigate out of the page and then copy the link from it.
Have you searched for an existing open/closed issue?
How long have you been using BookStack?
3 months to 1 year
Additional context
No response
The text was updated successfully, but these errors were encountered: