Help: Oops! We could not find requested route. #1946
-
Shlink versionv3.7.0 PHP versioncontainer How do you serve ShlinkRoadRunner Docker image Database engineSQLite Database version0.0.0 SummaryHi, I'm trying to setup shlink with Docker compose like so: restarted: true
project_name: shlink
pull: true
definition:
version: '3'
services:
server:
restart: unless-stopped
image: shlinkio/shlink:stable
volumes:
- '/etc/shlink/data'
environment:
DEFAULT_DOMAIN: 's.XXX'
IS_HTTPS_ENABLED: 1
ports:
- 'XXXX:8080' I can connect to the web interface at s.XXXX, I create a shortened URL but when I click it the following error appears:
I'm not sure what the issue is but I think it's trying to find the shortened URL on the web client instead of redirecting to its original URL ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Follow up: I found out that the shortened URL works when using another device / private mode on my browser. Which means the URL redirections don't work when 'logged in' to the web interface. I'm not sure if this should be converted into an issue or not. |
Beta Was this translation helpful? Give feedback.
-
The issue here is most probably that you didn't set the proper value in TL;DRShlink and shlink-web-client are effectively two independent apps. Shlink does not use The reason for that value to exist is to identify known non-default domains, and to properly build short URLs when served via API. shlink-web-client fetches data from Shlink via REST API. Short URLs displayed in shlink-web-client are built by Shlink using When you are in the browser, and a page creates a link, the browser will determine if that URL belongs to the loaded app itself, or is an external domain. Potential reasons for this behavior
|
Beta Was this translation helpful? Give feedback.
The issue here is most probably that you didn't set the proper value in
DEFAULT_DOMAIN
.TL;DR
Shlink and shlink-web-client are effectively two independent apps.
Shlink does not use
DEFAULT_DOMAIN
when processing incoming requests. Any request that gets to it will be handled, even if it was for a different domain.The reason for that value to exist is to identify known non-default domains, and to properly build short URLs when served via API.
shlink-web-client fetches data from Shlink via REST API. Short URLs displayed in shlink-web-client are built by Shlink using
DEFAULT_DOMAIN
.When you are in the browser, and a page creates a link, the browser will determine if that URL belongs to the …