permalink: fixed path and spider case

This commit is contained in:
Hunter Miller 2021-09-20 21:09:19 -05:00
parent e9ac2bd9cf
commit c7cafd8e1a
3 changed files with 4 additions and 4 deletions

View File

@ -330,7 +330,7 @@
=/ body=json (need (de-json:html q.u.body.request.inbound-request))
=/ input=vase (slop !>(~) (tube !>(body)))
=/ boc bec
=/ =start-args [~ `tid boc(q desk) thread input]
=/ =start-args [~ `tid boc(q desk, r da+now.bowl) thread input]
(handle-start-thread start-args)
::
++ on-poke-input

View File

@ -48,7 +48,7 @@
=+ !<(=diff:hood q.cage.sign)
?+ -.diff `this
::
%merge
%commit
=/ =action:hark ~(updated de:cc desk.diff)
:_ this
~[(poke:ha:cc action)]

View File

@ -87,7 +87,7 @@ export function referenceToPermalink({ reference }: ReferenceContent): Permalink
const { ship, desk, path } = reference.app;
return {
type: 'app',
link: `web+urbitgraph://${ship}/${desk}/${path}`,
link: `web+urbitgraph://${ship}/${desk}${path}`,
ship,
desk,
path
@ -120,7 +120,7 @@ export function parsePermalink(url: string): Permalink | null {
if (isValidPatp(kind)) {
const [desk, ...parts] = rest;
const path = parts.join('/');
const path = '/' + parts.join('/');
return {
type: 'app',
link: url,