mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
permalink: fixed path and spider case
This commit is contained in:
parent
e9ac2bd9cf
commit
c7cafd8e1a
@ -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
|
||||
|
@ -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)]
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user