isso icon indicating copy to clipboard operation
isso copied to clipboard

Admin interface uses public-endpoint instead of host when linking to posts

Open Konzertheld opened this issue 4 years ago • 3 comments

What the title says. I can't use the links to my posts in the comments lists because they use the wrong base URL. I use public-endpoint as per this workaround: https://github.com/posativ/isso/issues/558#issuecomment-511029858

So the links are test.site.de/post-slug but should instead be site.de/post-slug as the front site does not run on a subdomain.

Now I am unsure if this is expected behaviour and a consequence of the other bug or a separate bug...

Konzertheld avatar Apr 30 '20 12:04 Konzertheld

I am on the same issue.

EchedelleLR avatar Jan 10 '21 11:01 EchedelleLR

The main issue is that isso isn't aware of any "host" parameter, it only records a relative uri path component. As such, only the uri component is rendered in the admin interface: admin.html.

I've decided for myself to use full URLs instead of paths, see uri-location-full, but that's not feasible for upstream isso.

You might use the local() interface to access e.g. origin which resolves to the first(?) host you defined in your config - and pass that host to the template via the admin endpoint.

ix5 avatar Jan 15 '21 21:01 ix5

Related: https://github.com/posativ/isso/issues/566

ix5 avatar Dec 26 '21 22:12 ix5