Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !1375

WIP: erp5_dms: Add modificaiton_date to URL to make sure browser reloads the image in ERP5JS

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Gabriel Monnerat requested to merge fix_web_illustration into master Mar 11, 2021
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

In ERP5JS, when we access a Web Illustration, change it through Edit tab and go back to View, the image is old because the URL and browser does not ask to backend if something has changed.

For example, changing and switching to View tab never changes the URL "web_page_module/9?format=".

If we access it directly it returns 200 for the first time, 304 if we reload and 200 again if we edit this document. This is good and expected.

To fix this issue, modification_date will be passed in the URL and every change will make this property different. Then, browser will reload the page only if we change it.

Edited Mar 12, 2021 by Gabriel Monnerat
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix_web_illustration
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7