wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
846 stars 785 forks source link

[Publisher] "View in Dev Portal" link in menu bar redirects to localhost #7067

Closed binodmx closed 4 years ago

binodmx commented 4 years ago

Though deployment.toml is configured correctly, "View in Dev Portal" link in menu bar redirects to localhost.

Screenshot from 2019-12-03 10-24-06(1)

Screenshot from 2019-12-03 10-24-11

kavishkafernando commented 4 years ago

Hi @binodmx

have you set the devportal url in the deployment.toml file?

[apim.devportal] url = "https://localhost:${mgt.transport.https.port}/devportal"

binodmx commented 4 years ago

I only changed [server] hostname earlier. After enabled [apim.devportal] and replaced localhost with hostname (url = "https://hostname:${mgt.transport.https.port}/devportal"), it worked properly.

However, I was able to visit devportal directly using https://hostname:9443/devportal/ without enabling [apim.devportal]. In that case, I suppose View in Dev Portal should not redirect to localhost.

kavishkafernando commented 4 years ago

For redirection the Settings API reads the devportal url thats is why we have to change the devportal url as well.

teodora-mitrovic commented 4 years ago

Hey @kavishkafernando,

I have the same problem with redirection, and I have changed apim.devportal url to https://hostname:${mgt.transport.https.port}/devportal , but it still redirects to localhost. Do you have any idea why?

Thanks!