Open waldyrious opened 6 years ago
In function renderSearchResult
I replaced
copyShareLinkInputElement.value = getShareableLink(encodedArticleTitle);
to
copyShareLinkInputElement.value = shareLink;
It gets full url but previous page from history, not current.
Thanks for the information, @Witia1. I actually am considering whether having a dedicated button to copy the URL in such a minimal interface is worth it, since the functionality is already accessible otherwise.
Specifically, the URL is already updated to match the current page being viewed (since #22), so the user can either copy the URL from the address bar, on a desktop browser, or share the page using the native sharing flow on mobile.
With all due respect and appreciation to the work that went into implementing this feature, given the above I am, at the moment, inclined to remove it altogether. What do you think?
I think both options are acceptable, but I'd like to suggest that a decision should be made, because, as it is, we have the worst possible behavior.
Given the lack of response, and in the interests of simplifying the code to be more maintainable (without significant loss of functionality, as mentioned in my last comment), I'd say the best option is to remove the feature. Would you be willing to submit a patch, @marado?
The "copy permalink" feature was implemented in #42, but there seems to be an issue. Relevant quotes from #41:
and
and