Skip to content

Commit

Permalink
Update URL when opening page in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Jan 16, 2016
1 parent 40e358c commit 3b348f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/backend.c
Expand Up @@ -488,10 +488,12 @@ backend_open(prop_t *page, const char *url, int sync)
if(be == NULL)
return 1;

if(be->be_normalize != NULL &&
if(be->be_normalize != NULL &&
!be->be_normalize(url, urlbuf, sizeof(urlbuf)))
url = urlbuf;

prop_set(page, "url", PROP_SET_STRING, url);

be->be_open(page, url, sync);
return 0;
}
Expand Down

0 comments on commit 3b348f4

Please sign in to comment.