Closed
Description
<style type="text/acss">
@pages {
"#corridor": event="#corridor:click";
"#house": event="#house:click";
}
div:click{
add-hash: "#{@id}" "{@id} - clicked" remove-last-hash;
body{
background: {@data-color};
}
}
</style>
<div data-color="red" id="corridor">Corridor</div>
<div data-color="blue" id="house">House</div>
Expected things that are happening:
- If I directly visit: https://example.com/test.php#corridor (It shows me red background)
- If I directly visit: https://example.com/test.php#house (It shows me blue background)
Expected things that are not happening:
- After direct visit to https://example.com/test.php#corridor and then if I click on #house, it will show me blue background from red background as expected. But, then if I click the browser back button, it will show the URL: https://example.com/test.php#corridor but the background is still blue, which should be red.
Can you please tell me what I'm missing here, Sir?
Thank you so much.