Skip to content

on first load return html then if click route - #1

Open
Kalugy wants to merge 1 commit into
alexcamachogz:masterfrom
Kalugy:master
Open

on first load return html then if click route#1
Kalugy wants to merge 1 commit into
alexcamachogz:masterfrom
Kalugy:master

Conversation

@Kalugy

@Kalugy Kalugy commented Jul 16, 2022

Copy link
Copy Markdown

Bug:
I have a bug, when the first time loads the page, it shows an error. and it was because the first time
the variable page did not initialize with 'home' on (page='home') .

Fix:
So I first time I console log "page" variable and it contains ('index.html') which does not exist so i put and "if" that if the route appear return" and then if you click on router it works.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant