-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Better UI: fix page title #69
Comments
@benoit74 , Hi, I am trying to run the zimui locally, but this part of the command is not working and I have done extensive research and still didn't find any solution to this. docker run -it --rm -v $(pwd)/output:/data ghcr.io/openzim/zim-tools:latest zimdump dump --dir=/data/Minimal_Test /data/Minimal_Test.zim
The output to this command says, p.s - I am trying to solve this issue, so you can assign me this |
This is a local developer issue, unfortunately we cannot assist all developers with problems on their machine setup. Hint: https://stackoverflow.com/questions/45682010/docker-invalid-reference-format |
@benoit74 , sorry for the inconvinience, solved the docker issue and the ui is working perfectly, starting to work on the current issue present. |
@benoit74 , just looking for some clarifications here, do you want the title to be "ZIM" or do you want the title to be the name of the zim folder that was scrapped by docker? Eg - "Minimal Test" |
Good question, thank you, we want it to be the You will probably have to pass it somehow to the Vue.JS part. One solution would be to add this information to the new |
As mentioned in first comment, it is important to test the final behavior in the ZIM, with a kiwix-serve server serving the ZIM file. |
@Pagla-Dasu Hi, can you please tell me the steps which you followed to set up the project locally. I am having some trouble setting it up. |
@ArnabBCA Hey, so, go to the "new_ui" branch and then go to the |
Thanks, also did you set it up in linux or windows? |
Unix(Mac) |
@benoit74 can you attach the relevant screenshot and/or channel-id to reproduce this issue |
All channels are impacted. The problem is the HTML page title, the one present in |
@benoit74 the display property for the title is set to |
This is your user-agent which does this, not our code ; anyway,
It is displayed in your screenshot (see purple circle): And we do not want:
We want to always have the ZIM title. |
I have been working on this issue for the past few days, I am still figuring out the complete fix for this issue. This one seemed pretty easy at first, but it isn't. As far as I have understood: What I have tried already: I might be wrong somewhere, feel free to correct. |
This has been one quite neatly in youtube:
|
With current code of the new UI, on topic pages, the title is "Kolibri channel in ZIM".
On content pages, it is the content title, but it sometimes fails to be updated (or compete with kiwix-serve iframe code more exactly).
For simplicity / effectiveness, we should fix this to always have a constant title per ZIM which would be the ZIM title (and it needs to be static, i.e. not computed/manipulated by Vue.JS).
The text was updated successfully, but these errors were encountered: