Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected URL encoded string included at end of URL after Sablier redirect #493

Open
Carson-Shaar opened this issue Jan 29, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Carson-Shaar
Copy link

Carson-Shaar commented Jan 29, 2025

Describe the bug
Sablier is adding the file to display the waiting screen as a URL encoded string to the end of the url when redirecting to the application after it becomes ready.

Context

  • Sablier version: 1.8.1
  • Provider: kubernetes 1.31
  • Reverse proxy: traefik v3.1.4
  • Sablier running inside a container? yes

Expected behavior
I expect Sablier to redirect to the URL without anything additional added.

Additional context
An example of what this looks like is this assuming the original URL I was looking to reach was "https://www.example.com":
https://www.example.com/#222;%20%20%20%20%20%20%20%20%20%20%20%20color:%20#aaa;%20%20%20%20%20%20%20%20%20%20%20%20font-family:%20'Hack',%20monospace;%20%20%20%20%20%20%20%20%20%20%20%20font-size:%200;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20.full-height%20{%20%20%20%20%20%20%20%20%20%20%20%20height:%20100vh;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20.flex-center%20{%20%20%20%20%20%20%20%20%20%20%20%20align-items:%20center;%20%20%20%20%20%20%20%20%20%20%20%20display:%20flex;%20%20%20%20%20%20%20%20%20%20%20%20justify-content:%20center;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20#error_text%20{%20%20%20%20%20%20%20%20%20%20%20%20font-size:%2032px;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20#details%20table%20{%20%20%20%20%20%20%20%20%20%20%20%20width:%20100%;%20%20%20%20%20%20%20%20%20%20%20%20border-collapse:%20collapse;%20%20%20%20%20%20%20%20%20%20%20%20box-sizing:%20border-box;%20%20%20%20%20%20%20%20%20%20%20%20margin-top:%2020px;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20#details.hidden%20td%20{%20%20%20%20%20%20%20%20%20%20%20%20opacity:%200;%20%20%20%20%20%20%20%20%20%20%20%20font-size:%200;%20%20%20%20%20%20%20%20%20%20%20%20color:%20#222;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20#details%20td%20{%20%20%20%20%20%20%20%20%20%20%20%20font-size:%2011px;%20%20%20%20%20%20%20%20%20%20%20%20color:%20#999;%20%20%20%20%20%20%20%20%20%20%20%20padding-top:%20.5em;%20%20%20%20%20%20%20%20%20%20%20%20transition:%20opacity%201s,%20font-size%20.3s,%20color%201.2s;%20%20%20%20%20%20%20%20%20%20%20%20opacity:%201;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20#details%20td.name%20{%20%20%20%20%20%20%20%20%20%20%20%20text-align:%20right;%20%20%20%20%20%20%20%20%20%20%20%20padding-right:%20.3em;%20%20%20%20%20%20%20%20%20%20%20%20width:%2050%;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20#details%20td.value%20{%20%20%20%20%20%20%20%20%20%20%20%20text-align:%20left;%20%20%20%20%20%20%20%20%20%20%20%20padding-left:%20.3em;%20%20%20%20%20%20%20%20%20%20%20%20font-family:%20'Lucida%20Console',%20'Courier%20New',%20monospace;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20#details%20td.value.success%20{%20%20%20%20%20%20%20%20%20%20%20%20color:%20rgb(50,%20209,%20106)%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20#details%20td.value.error%20{%20%20%20%20%20%20%20%20%20%20%20%20color:%20rgb(195,%2041,%2041)%20%20%20%20%20%20%20%20}%20%20%20%20%3C/style%3E%3C/head%3E%3Cbody%3E%3Cdiv%20class=%22flex-center%20full-height%22%3E%20%20%20%20%3Cdiv%3E%20%20%20%20%20%20%20%20%3Cdiv%20id=%22error_text%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cspan%20class=%22source%22%3EStarting%20%3Cspan%3Eexample%20Notebook...%3C/span%3E%3C/span%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cspan%20class=%22target%22%3E%3C/span%3E%20%20%20%20%20%20%20%20%3C/div%3E%20%20%20%20%20%20%20%20%3Cdiv%20class=%22hidden%22%20id=%22details%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Ctable%3E%3C/table%3E%20%20%20%20%20%20%20%20%3C/div%3E%20%20%20%20%3C/div%3E%3C/div%3E%3Cscript%3E%20%20%20%20'use%20strict';%20%20%20%20%20%20%20%20const%20Shuffle%20=%20function%20($el)%20{%20%20%20%20%20%20%20%20const%20chars%20=%20'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=+%3C%3E,./?[{()}]!@#$%^&*~%60\|'.split(''),%20%20%20%20%20%20%20%20%20%20%20%20$source%20=%20$el.querySelector('.source'),%20$target%20=%20$el.querySelector('.target');%20%20%20%20%20%20%20%20let%20cursor%20=%200,%20scrambleInterval%20=%20undefined,%20cursorDelayInterval%20=%20undefined,%20cursorInterval%20=%20undefined;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20const%20getRandomizedString%20=%20function%20(len)%20{%20%20%20%20%20%20%20%20%20%20%20%20let%20s%20=%20'';%20%20%20%20%20%20%20%20%20%20%20%20for%20(let%20i%20=%200;%20i%20%3C%20len;%20i++)%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20s%20+=%20chars[Math.floor(Math.random()%20*%20chars.length)];%20%20%20%20%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20%20%20%20%20return%20s;%20%20%20%20%20%20%20%20};%20%20%20%20%20%20%20%20this.start%20=%20function%20()%20{%20%20%20%20%20%20%20%20%20%20%20%20$source.style.display%20=%20'none';%20%20%20%20%20%20%20%20%20%20%20%20$target.style.display%20=%20'block';%20%20%20%20%20%20%20%20%20%20%20%20scrambleInterval%20=%20window.setInterval(()%20=%3E%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20(cursor%20%3C=%20$source.innerText.length)%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20$target.innerText%20=%20$source.innerText.substring(0,%20cursor)%20+%20getRandomizedString($source.innerText.length%20-%20cursor);%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20%20%20%20%20},%20200%20/%2030);%20%20%20%20%20%20%20%20%20%20%20%20cursorDelayInterval%20=%20window.setTimeout(()%20=%3E%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cursorInterval%20=%20window.setInterval(()%20=%3E%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20(cursor%20%3E%20$source.innerText.length%20-%201)%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20this.stop();%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cursor++;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20},%2040);%20%20%20%20%20%20%20%20%20%20%20%20},%20200);%20%20%20%20%20%20%20%20};%20%20%20%20%20%20%20%20this.stop%20=%20function%20()%20{%20%20%20%20%20%20%20%20%20%20%20%20$source.style.display%20=%20'block';%20%20%20%20%20%20%20%20%20%20%20%20$target.style.display%20=%20'none';%20%20%20%20%20%20%20%20%20%20%20%20$target.innerText%20=%20'';%20%20%20%20%20%20%20%20%20%20%20%20cursor%20=%200;%20%20%20%20%20%20%20%20%20%20%20%20if%20(scrambleInterval%20!==%20undefined)%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20window.clearInterval(scrambleInterval);%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20scrambleInterval%20=%20undefined;%20%20%20%20%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20%20%20%20%20if%20(cursorInterval%20!==%20undefined)%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20window.clearInterval(cursorInterval);%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cursorInterval%20=%20undefined;%20%20%20%20%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20%20%20%20%20if%20(cursorDelayInterval%20!==%20undefined)%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20window.clearInterval(cursorDelayInterval);%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cursorDelayInterval%20=%20undefined;%20%20%20%20%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20};%20%20%20%20};%20%20%20%20(new%20Shuffle(document.getElementById('error_text'))).start();%20%20%20%20window.setTimeout(function%20()%20{%20%20%20%20%20%20%20%20document.getElementById('details').classList.remove('hidden');%20%20%20%20},%20200);%3C/script%3E%3C/body%3E%3C/html%3E/

@Carson-Shaar Carson-Shaar added the bug Something isn't working label Jan 29, 2025
@acouvreur
Copy link
Member

Hello @Carson-Shaar do you have a reproducible example ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants