Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add current url to feedback link #96

Merged
merged 2 commits into from
Feb 4, 2020

Conversation

znz
Copy link
Member

@znz znz commented Jan 21, 2020

https://help.github.com/en/github/managing-your-work-on-github/opening-an-issue-from-code のように issue 作成を試そうとすると、 permalink というパラメーターがつくようなので、同様につければ良さそうかと思ったのですが、
https://help.github.com/en/github/managing-your-work-on-github/about-automation-for-issues-and-pull-requests-with-query-parameters
にはなかったので、 body に変更したコミットを積んでから pull request を作成しました。

@znz znz merged commit 2a82e09 into rurema:master Feb 4, 2020
@znz znz deleted the add-permalink-to-feedback-link branch February 4, 2020 11:02
@znz
Copy link
Member Author

znz commented Feb 4, 2020

特に何もなさそうだったので、とりあえずマージして様子を見てみます。

@@ -21,7 +21,8 @@
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/3.0/88x31.png" />
</a>

フィードバックは<a href="https://github.com/rurema/doctree">こちら</a>
フィードバックは<a href="https://github.com/rurema/doctree/issues/new" id="feedback-link">こちら</a>
<script>document.getElementById("feedback-link").search = new URLSearchParams({'body': document.location});</script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IE11ではエラーになりそうですが静的なページなはずのでJavaSciptでエラーでて止まっても特に問題ないのかな...?
https://caniuse.com/#feat=urlsearchparams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants