Applied updates url showing port number Topic is solved

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
abelm
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 12, 2019 1:29 pm

Applied updates url showing port number

Post by abelm » Tue Jun 18, 2019 12:55 pm

Dear All,

Please advise me, I have applied the updates to 3.9.8 of Joomla but now I see the port number in the url" http://domainname:8081/products-and-services". Before the upgrade it was not showing the port number in the url.


I have setup apache on port 8081 and used IIS rule to redirect to port 8081 because port 80 is used by iis I cannot use it.

How can I remove the port number on url please?

Thank you.

Regards,
Abel

 
deepvyas
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Apr 17, 2017 9:36 am

Re: Applied updates url showing port number

Post by deepvyas » Wed Jun 19, 2019 12:58 pm

Please check your config file

abelm
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 12, 2019 1:29 pm

Re: Applied updates url showing port number

Post by abelm » Fri May 22, 2020 7:27 am

I managed to resolve the issue by editing the code in the file HeadRender.php from:
if (!empty($base))
{
$buffer .= $tab . '<base href="' . $base . '" />' . $lnEnd;
}

To:
if (!empty($base))
{
$base2 = '/';
$buffer .= $tab . '<base href="' . $base2 . '" />' . $lnEnd;
}
I don't think this is perfect solution since I edited the code but it worked for.
If I was using port 80 I wouldn't see the port in the url.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20042
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Applied updates url showing port number

Post by leolam » Sun May 24, 2020 4:29 pm

"good solution" Next upgrade will override your 'solution'

Leo 8)
Joomla's #1 Professional Services Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
-> Joomla Webmaster Services: gws-webmaster.services

 

Post Reply

Return to “Migrating and Upgrading to Joomla! 3.x”