BobSty
Page wont redirect after parameter change
I realized that there is an error in the code... which is only thrown on redirect, not thrown on refresh.... so thats why it did not work lol.
I just wasted about 3 days for a fricking semicolon in the html code
After removing the the semicolon, the code works flawless
36 replies
Page wont redirect after parameter change
I've changed the order of the files to following now:
I also changed it here:
https://stackblitz.com/edit/github-ho2su4-dhgfkw?file=pages%2Fdashboard%2Findex.vue,components%2Fserver.vue,pages%2Fdashboard%2F[serverId]%2Findex.vue,pages%2Fdashboard%2F[serverId]%2F[channelId]%2Findex.vue,components%2Fservers.vue,components%2Fchannels.vue,components%2Fchannel.vue
But the behaviour did not change
36 replies
Page wont redirect after parameter change
This one?
http://localhost:3000/dashboard/324141341234134/2312341351234
Its basically if I call http://localhost:3000/dashboard/324141341234134/
then the [serverId].vue
component is redirected
and if I press the button there which should redirect me to the [channelId].vue
then the url looks like this http://localhost:3000/dashboard/324141341234134/2312341351234
but its not redirecting. However if I refresh the page now then the [channelId].vue
component is displayed36 replies
Event is triggered twice
Okay, I'm kinda stupid on this one, so the solution is simply to check which instance of the input is currently in use and if the input is not the instance which I want to add the text to simply exit the function. I had 2 instances of the input in use so the event would be send to both of them and the input would always be added from both instances.
2 replies