Skip to content

Bug: previous_url() contains current URL after reloading a page. #4299

Closed
@yyil

Description

@yyil

Describe the bug
I use previous_url() for a "Go back" button. The page sometimes needs to be reloaded. After reloading, the button's href is no longer assigned the original previous_url, but the current URL -- hence the back button does nothing.

CodeIgniter 4 version
4.1.1

Expected behaviour, and steps to reproduce if appropriate
I'd expect the previous_url() value to be retained after I reload the page. For example, clicking the "back" button on the browser doesn't care that I've reloaded the page; it takes me to the previous page.

Context

  • OS: MacOS 11.1
  • PHP version 7.4.9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions