aboutsummaryrefslogtreecommitdiff
path: root/src/nav.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nav.c')
-rw-r--r--src/nav.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nav.c b/src/nav.c
index 1be5d0af..740bc565 100644
--- a/src/nav.c
+++ b/src/nav.c
@@ -194,7 +194,7 @@ static void Nav_stack_clean(BrowserWindow *bw)
static void Nav_open_url(BrowserWindow *bw, const DilloUrl *url,
const DilloUrl *requester, int offset)
{
- DilloUrl *old_url;
+ const DilloUrl *old_url;
bool_t MustLoad, ForceReload, Repush, IgnoreScroll;
int x, y, idx, ClientKey;
DilloWeb *Web;
@@ -319,7 +319,7 @@ void a_Nav_expect_done(BrowserWindow *bw)
}
if (goto_old_scroll) {
- /* Scroll to were we were in this page */
+ /* Scroll to where we were in this page */
Nav_get_scroll_pos(bw, &posx, &posy);
a_UIcmd_set_scroll_xy(bw, posx, posy);
_MSG("Nav: expect_done scrolling to x=%d y=%d\n", posx, posy);
@@ -405,11 +405,12 @@ void a_Nav_repush(BrowserWindow *bw)
static void Nav_redirection0_callback(void *data)
{
BrowserWindow *bw = (BrowserWindow *)data;
+ const DilloUrl *referer_url = a_History_get_url(NAV_TOP_UIDX(bw));
_MSG(">>>> Nav_redirection0_callback <<<<\n");
if (bw->meta_refresh_status == 2) {
Nav_stack_move_ptr(bw, -1);
- a_Nav_push(bw, bw->meta_refresh_url,a_History_get_url(NAV_TOP_UIDX(bw)));
+ a_Nav_push(bw, bw->meta_refresh_url, referer_url);
}
a_Url_free(bw->meta_refresh_url);
bw->meta_refresh_url = NULL;
@@ -475,7 +476,8 @@ void a_Nav_home(BrowserWindow *bw)
static void Nav_reload_callback(void *data)
{
BrowserWindow *bw = data;
- DilloUrl *h_url, *r_url;
+ const DilloUrl *h_url;
+ DilloUrl *r_url;
int choice, confirmed = 1;
a_Nav_cancel_expect(bw);