gitment icon indicating copy to clipboard operation
gitment copied to clipboard

如何处理 url 末尾 `/` 和参数?

Open mashirozx opened this issue 6 years ago • 2 comments

如图,同一个页面因为末尾多少一个 / 的原因被重复初始化了 image

mashirozx avatar Apr 28 '18 15:04 mashirozx

gitmentid 是与 issue 中的 label 对应的。

我的做法是将 gitmentid 改成 日期 + 文章标题 的方式。

用参数的方式将这个传入你对应的模板引擎当中最好不要使用 location.href 因为 github 的 issue Label 最多支持50个字符。超出之后就不能建成功。

hongxuWei avatar May 16 '18 07:05 hongxuWei

@hongxuWei 谢谢。请问按您的意思,日期是怎样与文章对应的呢?我的文章并没有做日期的标记,如果两篇文章标题相同怎么办呢?

mashirozx avatar May 16 '18 15:05 mashirozx