Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 7e4e32c

Browse files
Fix href bug causing errors for KIO
1 parent b686692 commit 7e4e32c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/depject/channel/html/preview.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ exports.create = function (api) {
2828
return nest('channel.html.preview', function (id) {
2929
const yourId = api.keys.sync.id()
3030
const channel = api.channel.sync.normalize(id)
31-
let href = '#' + channel
31+
let target = '#' + channel
3232
try {
33-
href = decodeURIComponent(href)
33+
target = decodeURIComponent(target)
3434
} catch (e) {
3535
// Safely ignore because it wasn't URI-encoded. :)
3636
}
@@ -46,7 +46,7 @@ exports.create = function (api) {
4646
h('div.main', [
4747
h('div.title', [
4848
h('h1', [
49-
h('a', { href, 'ev-click': () => api.app.navigate(href) }, [href])
49+
h('a', { href: '#', 'ev-click': () => api.app.navigate(target) }, [target])
5050
]),
5151
h('div.meta', [
5252
api.channel.html.subscribeToggle(channel)

lib/depject/profile/html/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ exports.create = function (api) {
3434
h('div.main', [
3535
h('div.title', [
3636
h('h1', [
37-
h('a', { href: id, 'ev-click': () => api.app.navigate(id) }, [name])
37+
h('a', { href: '#', 'ev-click': () => api.app.navigate(id) }, [name])
3838
]),
3939
h('div.meta', [
4040
api.contact.html.followToggle(id, { block: false })

0 commit comments

Comments
 (0)