mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01:00
Fix wrong links
This commit is contained in:
parent
17e28156db
commit
129417bad3
2 changed files with 2 additions and 8 deletions
|
@ -259,13 +259,7 @@ function Status({
|
|||
{size !== 'l' &&
|
||||
(uri ? (
|
||||
<Link
|
||||
to={
|
||||
instance
|
||||
? `
|
||||
/s/${instance}/${id}
|
||||
`
|
||||
: `/s/${id}`
|
||||
}
|
||||
to={instance ? `/${instance}/s/${id}` : `/s/${id}`}
|
||||
class="time"
|
||||
>
|
||||
<Icon
|
||||
|
|
|
@ -46,7 +46,7 @@ function handleContentLinks(opts) {
|
|||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
const tag = target.innerText.replace(/^#/, '').trim();
|
||||
const hashURL = instance ? `#/t/${instance}/${tag}` : `#/t/${tag}`;
|
||||
const hashURL = instance ? `#/${instance}/t/${tag}` : `#/t/${tag}`;
|
||||
console.log({ hashURL });
|
||||
location.hash = hashURL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue