wallabag: If you change the URL of your wallabag instance, all links to local images are broken
Issue details
When the option Download images locally is on 1 (in Internal Settings → Misc) and if you change URL of *your* wallabag instance , all links to local images are not changed to the new setting, so they are all broken.
Environment
- wallabag version (or git revision) that exhibits the issue: 2.2.1
- How did you install wallabag? Via
git cloneor by downloading the package? make update - Last wallabag version that did not exhibit the issue (if applicable):
- php version:
- OS: raspbian
- type of hosting (shared or dedicated):
- which storage system you choose at install (SQLite, MySQL/MariaDB or PostgreSQL): sqlite
Steps to reproduce/test case
- Lets say your URL is
http://wallabag.name.tld - In
internal settings→misc→URL of *your* wallabag instance1bis. Put:http://toto.name.tld - Add an article
2bis. Notice you have a 404 error with images because links begin with
http://toto.name.tld - Back to
internal settings→misc→URL of *your* wallabag instance3bis. Put:http://wallabag.name.tld - Back to the previous article: your images are still 404
4bis: Note links for images are still with
http://toto.name.tldinstead ofhttp://wallabag.name.tld
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (5 by maintainers)
What worked for me was go to wallabag directory into app/config/ edit the parameters.yml domain_name to the new domain name. Then go back to the main wallabag directory. Run make install, answer no to clearing anything or creating any accounts.