tosdr/Frontpage

http://tosdr.org/#soundcloud redirects me to https://service/soundcloud

saper opened this issue · 3 comments

saper commented

Description

The browser gets redirected to /service/soundcloud when clicking on a "Soundcloud" link on https://tosback.org/

How To Reproduce It

Steps to reproduce the behavior:

Observed behavior

Expected behavior

  • a requested service info should be shown

Desktop Specs

  • OS: FreeBSD
  • Firefox/86.0
  • Chrome/88.0.4324.182
saper commented

The code in question:

https://github.com/tosdr/CrispCMS/blob/ac67d9ea84aab928e907f63c8f05d519f1018016/themes/crisp/templates/views/frontpage.twig#L127-L131

seems to produce the following:

>> exp
(11) […]
​0: ""
​1: "https:"
​2: "https"
​3: "//tosdr.org"
​4: "tosdr.org"
​5: "/"
​6: undefined
​7: undefined
​8: "#soundcloud"
​9: "soundcloud"
​10: ""
​length: 11
​<prototype>: Array []
>> "/" + firstPortion + "/service/" + encodeURIComponent(window.location.hash.substr(1))
"//service/soundcloud"

Thanks for reporting this, it seems to have used the old system so I've gone ahead and fixed it.

It will take a couple hours to appear in production