BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Error redirecting url creating new page

Open jmleandrocr opened this issue 3 years ago • 6 comments

Describe the Bug

I´m using Bookstack last version with docker

Everything is running ok, but when you create a new page , this happen

GET http://100.30.4.00:6875/%20http://100.30.4.00:6875/books/notas-del-curso 404 (Not Found)

Does anyone know about this error?

Steps to Reproduce

Just create a new page or charter

Expected Behaviour

After click on create new page, the site has to go to the draft.

Screenshots or Additional Context

No response

Browser Details

Chrome

Exact BookStack Version

BookStack v23.01.1

PHP Version

No response

Hosting Environment

Docker lscr.io/linuxserver/bookstack:latest

jmleandrocr avatar Feb 17 '23 23:02 jmleandrocr

Have you set the APP_URL environment variable? The value should start with http. So, for example, APP_URL=http://100.30.4.00:6875 (Assuming that "http://100.30.4.00:6875" is the base URL used in the browser to access your instance).

ssddanbrown avatar Feb 17 '23 23:02 ssddanbrown

Yes , it’s already set in the docker-compose.yml file .

The site works , you can login , search , manage , the only thing is this error when you create a new page .

Thanks

jmleandrocr avatar Feb 18 '23 00:02 jmleandrocr

@mleandroj18 Okay, please can you share a screenshot all the environment options set in the docker-compose.yml file for the BookStack container? You can hide or remove any passwords/secrets first.

ssddanbrown avatar Feb 18 '23 13:02 ssddanbrown

Here it is

image

Version of the docker

image

And the host of the docker engine

image

Thanks for your help.

jmleandrocr avatar Feb 18 '23 17:02 jmleandrocr

@mleandroj18 The APP_URL has a leading space and a trailing slash. Please remove both of these then re-up your compose setup (Just restarting won't let the changes take effect).

ssddanbrown avatar Feb 18 '23 17:02 ssddanbrown

Hi ssddanbrown

It worked.

Thanks.

jmleandrocr avatar Feb 20 '23 15:02 jmleandrocr