@Madchatthew From what I can see, you have some custom JS that looks like the below
const gridItem = document.getElementById("gridItem");
gridItem.removeAtribute('style');
I’m not entirely sure what this is for, but it will only fire on page load - not on AJAX
calls which is used when clicking links. To fix this issue, you can wrap the JS so that it will also work on AJAX
calls as follows
$(window).on('action:ajaxify.end', function(data) {
const gridItem = document.getElementById("gridItem");
gridItem.removeAtribute('style');
});
This will then allow the same code to execute when the links are clicked. However, this then generates the below error in the console
This relates to gridItem.removeAttribute
not being a valid function, so the JS fails and will not process further. This shortened version will work though
$(window).on('action:ajaxify.end', function(data) {
document.getElementById("gridItem").removeAttribute("style");
});
As I mentioned, I do not see any reason for this specific code to execute, as it appears to be removing a style from an element. Is this actively being used for anything ? This doesn’t seem to be causing the strange layout - I suspect this comes from the URL entered in config.json
in the NodeBB root.
The blog page should also show when you navigate to https://siteurl.com/user/username/blog
but it fails to render with the below in the console
GET http://x.x.x.x/assets/src/client/account/fte-blog.js?v=ph7njujnhro net::ERR_ABORTED 404 (Not Found)
Again, I think this is because of the url
value in config.json
. Is there any way I can get access to the Ubuntu server this instance is running on ?