Umbraco adds extra slash to beginning of page URL - umbraco7

Umbraco 7.12.4
Recently I renamed a node in Umbraco. It used to be called "Projects". I want it to be called "My Projects". After renaming it, no matter whether I put the name back to the original value or set an entirely new value, the following occurs:
Change page name
Click on properties. The Url appears correct, without an extra /
Access the website. The website works correctly
Access the website AGAIN. This page now redirects to http://my-projects and fails.
Click on properties. The Url now appears as in the image below.
I have checked routes. Cleared URL redirects. Emptied recycle bin. Tried page names that have never existed before.
Any ideas? I am pulling my hair out. Thanks!

The problem was related to a missing host name - look at comments :-)

Related

Lektor server doubles subfolder in url without obvious reason

I am trying to export an existing php-based dynamic webpage into a lektor project which up to now really worked well.
Unfortunately one problem is giving me a headache:
While my navigation works perfectly with every page and subpage, links to subpages in the content section don't.
E.g. if I set a relative path like
[My Link to Subpage](/peter/personalinfo)
it is correctly shown in the browser view. If I hover the mouse over the link the browser shows the correct url 127.0.0.1:5000/peter/personalinfo.
But if I click it I get
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
and the url in the address field shows
127.0.0.1:5000/peter/peter/personalinfo
So I click the correct url but the browser calls the wrong url and of course can't find anything there.
I don't understand how this doubling can happen. I naively would expect that if I clicked a link the browser would exactly look at that address. But it seems like the server is redirecting to the malformed url. And yes, it does so with any link to a subpage.
the navigation looks like this:
Home
News
Peter
-- Personalinfo
-- Contact
-- Portfolio
Bob
-- Personalinfo
-- Contact
-- Portfolio
Any idea why this happens and how to change it?
Update: The problem doesn't appear with the built static page on a webserver.
there is an open issue (#997) that is already fixed and will be released soon. But you can fix this yourself, just append a slash at the end of your link [My Link to Subpage](/peter/personalinfo/)

Problem with joomla with photos and redirection

I deleted the pictures through the Joomla panel and I get such an error on the page as you can see in the picture. How to deal with this?
How to add redirection but without domain?
Your first issue about the pictures seems to be an issue with the component you're using, which is com_joomgallery in your case. When you delete the picture, it gets deleted but somehow its showing up in your JoomGallery image listing and so is the error.
Can you let me know from where you've deleted the photos? Was it from JoomGallery or from somewhere else?
If you haven't deleted them from JoomGallery then that's the reason for your issue, because JoomGallery database table still have those records and when it tries to list them its unable to find the thumbnails/images that you've deleted.
About your second question, how are you redirecting to external URL? If you're trying to open the external URL from an anchor tag try doing it like
Link
But you're using Route::_ to open the external URL, then don't. As Route::_ isn't used for external links but is meant only for internal URLs. If you want to open or redirect using Joomla, then try like this
$url = Uri::getInstance("//www.facebook.com");
$url->setScheme("https");
$externalURL = $url->toString();
echo "<a href='$externalURL'>Link</a><br>";
I hope this helps.

Moved joomla site to another host but doesn't work

I have recently moved my joomla site to another hosting. But now the site doesn't work. Shows blank page. Though the administrator's page (/administrator) is shown and works correctly. Have any ideas for what reason it can be?
Remove the .htaccess altogether
clear the cache and tmp folders
make sure db name, login and password are correct in the configuration.php
make sure the server path (tmp and logs folders) are correct
if you still get an empty page, make sure you're looking at the right log file. Turn php error logging on or display them.
post some more details here...

Joomla: pages not found after copying site to another directory

I have copied a live joomla site. The original is found at [this][1] website. The copied one in found [here][2]. But all links (e.g. in the left navigation menu) result in 404 errors. The administrator backend is accessible and i can create new menu items in the copied one but they all result in 404 errors.
I did adjust the configuration.php file so var $tmp_path var $log_path point the right paths. i updated var $live_site = 'http://hosting01.hestronic.nl/~ijskoud2
The live_site was empty in the original configuration.php file.
Do i still need to run an update or something?
Thank you
PS joomla 1.5.25
Turn off search engine friendly url feature in System -> global configurations.
If you really want to enable SEF URL then you need to set your rewrite base according to your site dir in the server.
For $live_site variable, no need to modify it and keep it empty.
I ran into a similar issue where all of my links were doubling up. Fixed by prefixing http:// to $live_site
You don't need to do anything to $live_site, just leave it blank. The tmp and log paths are the only thing you need to touch. If you have SEF URLs turned on, you will also need to change the rewrite base from / to what ever the subdirectory is.
I disagree with my friend #Brent. Go to your DB to the menu table (by default its called jos_menu) and look for the "path" column. you probably need to manually fix the paths of all your menus to point to the new folder.
Check if the .htaccess file exists in your new folder. if not exists remove the sef url configuration from admin side.

Set up a cms page for Magento

I've been trying to set up a CMS page in magento to be the home page, and it's just killing me - how hard should this be? no matter what I set up, I get a 404.
Can somebody tell me basic steps to set up a CMS page as the home page for a Magento install, living at:
http://www.mymagentoinstall.com/
I can't have the url key for the CMS page be empty, but setting the default page in the System->Config->Default Pages->CMS Home Page (which seems like it should work), still gives me a 404.
thx for any help
Hours of head banging later .... I’ve changed the parameter “Use Web Server Rewrites” on System -> Configuration -> Web from Yes to No. And it worked! My provider set this by default, so had to change it. Only downside is that I now get the /index.php extension added.
Did you check to make sure that the page was enabled and visible in your store view?
Ok - figured it out. In the System->Config->Web, the Default Web URL needs to be 'cms' (no quotes) - I guess that tells Magento to use the cms page instead of a default url.
In csm - pages create some html in the page, eg start simple with My Homepage.
Give it a name and take care the url is "home" (without the quotes.
Now go to system - configuration - web and select your homepage (name) from the dropdown where in lets you choose the homepage.
That should do it.
Your CMS Page Identifier should be home
I was running into the same issue. No matter what I did, the home page came back as a 404. I had it working on a test server (with a different database) and compared the options side by side. Absolutely nothing worked, the home page, named 'home' and the 'cms' was properly set, mod_rewrite working, htaccess file just peachy...but domain.com/ wouldn't work. after a few hours I saw that domain.com/home/ did, though I swear it hadn't been.
Finally I wiped the blood off the keyboard where I'd been smashing my head against it and went into url rewrite management and set id path to '/', request path to '/' and target path to '/home/' and it works like it should have all along. Hope this helps someone else!

Resources