Right click to open React Link in new tab is throwing 404 Not Found error - react-router-dom

I am using react-router-dom Link to navigate to a page and the code is as below:
<Link to={'/xyz/login'}>Click here to Login</Link>
This works fine when the application is running on my local machine. But on server, when I try to right click and open the link in new tab, HTTP Status 404 – Not Found message is displayed.
Any thoughts on the issue is appreciated.

Related

My MERN website shows 'Not Found' on reload of web page

Problem is: when I try to generate lighthouse report for my project, when the home page reloads, it gives response 'Not Found'
I have hosted my website on render.com
Hosted website link: https://cookwell.onrender.com
Whole code link: https://github.com/manastelavane/RecipeNew
Only client side code: https://github.com/manastelavane/RecipeClient
Only server side code: https://github.com/manastelavane/RecipeServer
Only chat-server code: https://github.com/manastelavane/RecipeChatServer
(chat server is not involved on home page, so you can ignore chat server)
I used Mongodb,Express,React-Redux,Nodejs stack for project.
Also, note that, after loading of home page('/'), user is automatically redirected to '/card?category=All&page=1'
You need to specify homepage in your package.json file (Client side)
.
"homepage": "https://cookwell.onrender.com/"
.

Shopify Hamburger Menu Button Not Working On Mobile Devices (Debut Theme)

I'm using the Debut theme on my Shopify site and have an issue with the hamburger menu button not working. It will work once but when I navigate to a new page nothing happens when I press the button again. When the page loads the following message is shown on the console for theme.js:
TypeError: $.debounce is not a function. (In '$.debounce(50, function() {
styleDropdowns($(selectors.siteNavHasDropdown));
positionFullWidthDropdowns();
})', '$.debounce' is undefined)
If I manually empty caches through the browser and reload the page the error no longer appears in the console and the button works again. However, once I navigate away from the page the issue returns.
Any help would be greatly appreciated.
Check to see if you have your JS files included on all pages

www.server.com/*.aspx returns server error rather than custom error

I have updated my customerr folder to have a common error page which will be displayed for any sort of error.
www.server.com/wrongone
takes to me to the custom error page. -> Working fine
www.server.com/correctone/wrongone.aspx -> This is handled at application level, so I have no problem with this.
But when I hit www.server.com/wrongone.aspx,
It displays Server error. -> I dont want to display server error
What should I do ( at IIS Level) to redirect this to custom error page?
It depend on what status did you get. To set custom error page for .aspx file, you should set .NET error page <customError> instead of error page.
You could find it in IIS manager->site node->.NET error page and you need to add rule for your status code/error page. When you hit the error status code, the page will be redirected to your custom error page. If your status code is 500, then custom page would fail in some case.
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831398(v%3Dws.11)

pmwiki+ iis+ fastcgi Permissions partially dened

Recently ,I meet a problem ,that deploy pmwiki on our iis server,all things goes well.However,the problem occured,that ,our pmwiki has six group ,as we all know that,wiki must allow people to edit it content,the directory is like this:
![enter image description here][1]
the problem is that,I can change the defualt page ,howerver,can not edit the Group1~Group6 folder.
the iis setting is like this:
IE browser :http://your.domain/Group2/?n=Main.HomePage?action=edit
then the browse occured error:HTTP ERROR 405 POST DID NOT ALLOWED
how can I solve this problem ?
![enter image description here][2]
when i want to change the content of everygroup ,for example:
After F12 chrome debug, I found that it did not support HTTP POST method!

Google docs viewer not working

Using this code:
<iframe height="780" src="http://docs.google.com/viewer?url=http://ruh.kz/sites/default/files/doc/ritorika.pdf&embedded=true" style="border: none;" width="600"></iframe>
But all the time im getting this annoying message:
Sorry, we are unable to retrieve the document for viewing or you don't have permission to view the document.
By the way, i have read about ISP might block google docs. But i've checked another sites with google docs viewer and they seemed to work perfectly.
to embed your pdf without putting it in your server , just login to your gmail and upload it in google docs then copy the link and put it in your iframe's src
first you try with online version to view your file if it shows your file,you gave wrong url to iframe,if viewer does not show your file at embedded version and online version check your file size,file url and file permissions to viewer can reach your document.You can try your url, for example http://www.foo.com/bar.pdf paste in your browser,if url is right browser shows the file...

Resources